@@ -121,12 +121,12 @@
|
||||
} else if (BlockCampfire.g(iblockdata)) {
|
||||
- this.world.a((EntityHuman) null, 1009, blockposition, 0);
|
||||
- BlockCampfire.c((GeneratorAccess) this.world, blockposition, iblockdata);
|
||||
- this.world.setTypeUpdate(blockposition, (IBlockData) iblockdata.set(BlockCampfire.b, false));
|
||||
- this.world.setTypeUpdate(blockposition, (IBlockData) iblockdata.set(BlockCampfire.LIT, false));
|
||||
+ // CraftBukkit start
|
||||
+ if (!CraftEventFactory.callEntityChangeBlockEvent(this, blockposition, iblockdata.set(BlockCampfire.b, false)).isCancelled()) { // PAIL rename LIT
|
||||
+ if (!CraftEventFactory.callEntityChangeBlockEvent(this, blockposition, iblockdata.set(BlockCampfire.LIT, false)).isCancelled()) {
|
||||
+ this.world.a((EntityHuman) null, 1009, blockposition, 0);
|
||||
+ BlockCampfire.c((GeneratorAccess) this.world, blockposition, iblockdata);
|
||||
+ this.world.setTypeUpdate(blockposition, (IBlockData) iblockdata.set(BlockCampfire.b, false));
|
||||
+ this.world.setTypeUpdate(blockposition, (IBlockData) iblockdata.set(BlockCampfire.LIT, false));
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user