mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
Add Block#isPassable
This commit is contained in:
@@ -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