Add Block#isPassable

By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
CraftBukkit/Spigot 2018-10-12 00:54:10 +02:00
parent be0cc7cf03
commit 6f0acecee5

View File

@ -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
}
}