Add Block#isPassable

This commit is contained in:
blablubbabc 2018-10-12 00:54:10 +02:00 committed by md_5
parent e7ced970d2
commit e3d7b2fd96

View File

@ -597,4 +597,9 @@ public class CraftBlock implements Block {
public void removeMetadata(String metadataKey, Plugin owningPlugin) { public void removeMetadata(String metadataKey, Plugin owningPlugin) {
getCraftWorld().getBlockMetadata().removeMetadata(this, metadataKey, owningPlugin); getCraftWorld().getBlockMetadata().removeMetadata(this, metadataKey, owningPlugin);
} }
@Override
public boolean isPassable() {
return this.getData0().h(world, position).b(); // PAIL getCollisionShape, isEmpty
}
} }