mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Add Block#isPassable
This commit is contained in:
parent
e7ced970d2
commit
e3d7b2fd96
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue