summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockReed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockReed.patch')
-rw-r--r--nms-patches/BlockReed.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/BlockReed.patch b/nms-patches/BlockReed.patch
index 4bdaf9e7..f7713a70 100644
--- a/nms-patches/BlockReed.patch
+++ b/nms-patches/BlockReed.patch
@@ -1,11 +1,11 @@
--- a/net/minecraft/server/BlockReed.java
+++ b/net/minecraft/server/BlockReed.java
@@ -29,7 +29,7 @@
- int j = ((Integer) iblockdata.get(BlockReed.AGE)).intValue();
+ int j = (Integer) iblockdata.get(BlockReed.AGE);
if (j == 15) {
- world.setTypeUpdate(blockposition.up(), this.getBlockData());
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, blockposition.up(), this.getBlockData()); // CraftBukkit
- world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, Integer.valueOf(0)), 4);
+ world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, 0), 4);
} else {
- world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, Integer.valueOf(j + 1)), 4);
+ world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, j + 1), 4);