mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
13 lines
714 B
Diff
13 lines
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
|
|
}
|
|
|
|
}
|