diff options
Diffstat (limited to 'nms-patches/BlockCactus.patch')
-rw-r--r-- | nms-patches/BlockCactus.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/BlockCactus.patch b/nms-patches/BlockCactus.patch index 2103c424..b98d62b0 100644 --- a/nms-patches/BlockCactus.patch +++ b/nms-patches/BlockCactus.patch @@ -10,12 +10,12 @@ public static final BlockStateInteger AGE = BlockProperties.X; @@ -31,7 +33,7 @@ - int j = ((Integer) iblockdata.get(BlockCactus.AGE)).intValue(); + int j = (Integer) iblockdata.get(BlockCactus.AGE); if (j == 15) { - world.setTypeUpdate(blockposition1, this.getBlockData()); + CraftEventFactory.handleBlockGrowEvent(world, blockposition1, this.getBlockData()); // CraftBukkit - IBlockData iblockdata1 = (IBlockData) iblockdata.set(BlockCactus.AGE, Integer.valueOf(0)); + IBlockData iblockdata1 = (IBlockData) iblockdata.set(BlockCactus.AGE, 0); world.setTypeAndData(blockposition, iblockdata1, 4); @@ -92,7 +94,9 @@ |