mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Whitespace + general cleanup
This commit is contained in:
1 parent
e54d8c3352
commit
309846d732
87 files changed
+474
-421
No files matched your search
@@ -123,11 +123,11 @@ public class EntityPainting extends Entity {
|
||||
if (this.f++ == 100 && !this.world.isStatic) {
|
||||
this.f = 0;
|
||||
if (!this.h()) {
|
||||
|
||||
// CraftBukkit start
|
||||
Painting painting = (Painting) getBukkitEntity();
|
||||
PaintingBreakByWorldEvent event = new PaintingBreakByWorldEvent(painting);
|
||||
Bukkit.getServer().getPluginManager().callEvent(event);
|
||||
|
||||
if (event.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
@@ -203,11 +203,11 @@ public class EntityPainting extends Entity {
|
||||
|
||||
public boolean damageEntity(Entity entity, int i) {
|
||||
if (!this.dead && !this.world.isStatic) {
|
||||
|
||||
// CraftBukkit start
|
||||
Painting painting = (Painting) getBukkitEntity();
|
||||
PaintingBreakByEntityEvent event = new PaintingBreakByEntityEvent(painting, entity == null ? null : entity.getBukkitEntity());
|
||||
Bukkit.getServer().getPluginManager().callEvent(event);
|
||||
|
||||
if (event.isCancelled()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user