summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockStem.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-12-06 10:00:00 +1100
committermd_5 <git@md-5.net>2018-12-06 10:00:00 +1100
commitaa36c8417bda9bdd4812c6094895677654cff83d (patch)
treef28adbc34ebef8ef5816c95597927b4c72ba2797 /nms-patches/BlockStem.patch
parent20fc5bea2c51de8d5239b68d83e878896b8ff505 (diff)
downloadcraftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.tar
craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.tar.gz
craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.tar.lz
craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.tar.xz
craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.zip
Mappings Update
Diffstat (limited to 'nms-patches/BlockStem.patch')
-rw-r--r--nms-patches/BlockStem.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/BlockStem.patch b/nms-patches/BlockStem.patch
index 6b2a498b..89d850bf 100644
--- a/nms-patches/BlockStem.patch
+++ b/nms-patches/BlockStem.patch
@@ -12,7 +12,7 @@
@@ -33,14 +35,18 @@
if (i < 7) {
- iblockdata = (IBlockData) iblockdata.set(BlockStem.AGE, Integer.valueOf(i + 1));
+ iblockdata = (IBlockData) iblockdata.set(BlockStem.AGE, i + 1);
- world.setTypeAndData(blockposition, iblockdata, 2);
+ CraftEventFactory.handleBlockGrowEvent(world, blockposition, iblockdata, 2); // CraftBukkit
} else {
@@ -31,8 +31,8 @@
}
}
@@ -94,7 +100,7 @@
- int i = Math.min(7, ((Integer) iblockdata.get(BlockStem.AGE)).intValue() + MathHelper.nextInt(world.random, 2, 5));
- IBlockData iblockdata1 = (IBlockData) iblockdata.set(BlockStem.AGE, Integer.valueOf(i));
+ int i = Math.min(7, (Integer) iblockdata.get(BlockStem.AGE) + MathHelper.nextInt(world.random, 2, 5));
+ IBlockData iblockdata1 = (IBlockData) iblockdata.set(BlockStem.AGE, i);
- world.setTypeAndData(blockposition, iblockdata1, 2);
+ CraftEventFactory.handleBlockGrowEvent(world, blockposition, iblockdata1, 2); // CraftBukkit