mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 12:05:53 +01:00
Add Block#isPassable
This commit is contained in:
parent
e7ced970d2
commit
e3d7b2fd96
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user