Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
15 Zeilen
634 B
Diff
15 Zeilen
634 B
Diff
--- a/net/minecraft/server/BlockPlant.java
|
|
+++ b/net/minecraft/server/BlockPlant.java
|
|
@@ -40,6 +40,11 @@
|
|
|
|
protected void e(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
|
if (!this.f(world, blockposition, iblockdata)) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPhysicsEvent(world, blockposition).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
this.b(world, blockposition, iblockdata, 0);
|
|
world.setTypeAndData(blockposition, Blocks.AIR.getBlockData(), 3);
|
|
}
|