2015-05-25 18:37:24 +08:00
|
|
|
--- a/net/minecraft/server/BlockReed.java
|
|
|
|
+++ b/net/minecraft/server/BlockReed.java
|
2016-03-01 05:32:46 +08:00
|
|
|
@@ -31,8 +31,12 @@
|
2014-11-26 05:32:16 +08:00
|
|
|
int j = ((Integer) iblockdata.get(BlockReed.AGE)).intValue();
|
|
|
|
|
|
|
|
if (j == 15) {
|
|
|
|
- world.setTypeUpdate(blockposition.up(), this.getBlockData());
|
|
|
|
+ // CraftBukkit start
|
2014-12-11 08:44:30 +08:00
|
|
|
+ // world.setTypeUpdate(blockposition.up(), this.getBlockData()); // CraftBukkit
|
|
|
|
+ BlockPosition upPos = blockposition.up();
|
2014-12-11 08:13:27 +08:00
|
|
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, upPos.getX(), upPos.getY(), upPos.getZ(), this, 0);
|
|
|
|
world.setTypeAndData(blockposition, iblockdata.set(BlockReed.AGE, Integer.valueOf(0)), 4);
|
2014-11-26 05:32:16 +08:00
|
|
|
+ // CraftBukkit end
|
|
|
|
} else {
|
|
|
|
world.setTypeAndData(blockposition, iblockdata.set(BlockReed.AGE, Integer.valueOf(j + 1)), 4);
|
|
|
|
}
|