From e3d7b2fd9657de5ed1a18a375c028adbce4288cb Mon Sep 17 00:00:00 2001 From: blablubbabc Date: Fri, 12 Oct 2018 00:54:10 +0200 Subject: Add Block#isPassable --- src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index f19df71f..f3e06052 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -597,4 +597,9 @@ public class CraftBlock implements Block { public void removeMetadata(String metadataKey, Plugin owningPlugin) { getCraftWorld().getBlockMetadata().removeMetadata(this, metadataKey, owningPlugin); } + + @Override + public boolean isPassable() { + return this.getData0().h(world, position).b(); // PAIL getCollisionShape, isEmpty + } } -- cgit v1.2.3