diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index b5ce6f3612..eee885f981 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -584,4 +584,13 @@ public class CraftBlock implements Block { VoxelShape shape = getNMS().getCollisionShape(world, position); return new CraftVoxelShape(shape); } + + @Override + public boolean canPlace(BlockData data) { + Preconditions.checkArgument(data != null, "Provided block data is null!"); + net.minecraft.world.level.block.state.IBlockData iblockdata = ((CraftBlockData) data).getState(); + net.minecraft.world.level.World world = this.world.getMinecraftWorld(); + + return iblockdata.canSurvive(world, this.position); + } }