mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-12 20:32:00 -05:00
Add Block#isPassable
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user