2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockPlant.java
|
|
|
|
+++ b/net/minecraft/server/BlockPlant.java
|
2017-05-01 01:21:20 +02:00
|
|
|
@@ -40,6 +40,11 @@
|
2015-01-31 00:09:45 +01:00
|
|
|
|
|
|
|
protected void e(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
|
|
|
if (!this.f(world, blockposition, iblockdata)) {
|
2017-05-01 01:21:20 +02:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPhysicsEvent(world, blockposition).isCancelled()) {
|
2015-01-31 00:09:45 +01:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
this.b(world, blockposition, iblockdata, 0);
|
|
|
|
world.setTypeAndData(blockposition, Blocks.AIR.getBlockData(), 3);
|
|
|
|
}
|