Add Block#isPassable

This commit is contained in:
blablubbabc authored and md_5 committed 2018-10-13 09:49:25 +11:00
1 parent e7ced970d2
commit e3d7b2fd96
1 file changed
+5
@@ -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
}
}