@@ -10,11 +10,11 @@
|
||||
|
||||
public static final BlockStateInteger AGE = BlockProperties.ac;
|
||||
@@ -52,7 +54,7 @@
|
||||
float f = a((Block) this, (IBlockAccess) world, blockposition);
|
||||
float f = a((Block) this, (IBlockAccess) worldserver, blockposition);
|
||||
|
||||
if (random.nextInt((int) (25.0F / f) + 1) == 0) {
|
||||
- world.setTypeAndData(blockposition, this.setAge(i + 1), 2);
|
||||
+ CraftEventFactory.handleBlockGrowEvent(world, blockposition, this.setAge(i + 1), 2); // CraftBukkit
|
||||
- worldserver.setTypeAndData(blockposition, this.setAge(i + 1), 2);
|
||||
+ CraftEventFactory.handleBlockGrowEvent(worldserver, blockposition, this.setAge(i + 1), 2); // CraftBukkit
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,6 +33,6 @@
|
||||
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Entity entity) {
|
||||
- if (entity instanceof EntityRavager && world.getGameRules().getBoolean(GameRules.MOB_GRIEFING)) {
|
||||
+ if (entity instanceof EntityRavager && !CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition, Blocks.AIR.getBlockData(), !world.getGameRules().getBoolean(GameRules.MOB_GRIEFING)).isCancelled()) { // CraftBukkit
|
||||
world.b(blockposition, true);
|
||||
world.a(blockposition, true, entity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user