14 Zeilen
714 B
Diff
14 Zeilen
714 B
Diff
|
@@ -25,8 +25,12 @@
|
||
|
Block block1 = world.getType(blockposition.down()).getBlock();
|
||
|
|
||
|
if (this.a(world, blockposition, this.a.getCarried().getBlock(), block, block1)) {
|
||
|
+ // CraftBukkit start - Place event
|
||
|
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this.a, blockposition.getX(), blockposition.getY(), blockposition.getZ(), this.a.getCarried().getBlock(), this.a.getCarried().getBlock().toLegacyData(this.a.getCarried())).isCancelled()) {
|
||
|
world.setTypeAndData(blockposition, this.a.getCarried(), 3);
|
||
|
this.a.setCarried(Blocks.AIR.getBlockData());
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
}
|
||
|
|
||
|
}
|