mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Add Block#isPassable
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
parent
be0cc7cf03
commit
6f0acecee5
@ -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