diff options
author | blablubbabc <lukas@wirsindwir.de> | 2018-10-12 00:54:10 +0200 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-10-13 09:49:25 +1100 |
commit | e3d7b2fd9657de5ed1a18a375c028adbce4288cb (patch) | |
tree | 53172497d732779da6a33860570f64f88f0557d2 | |
parent | e7ced970d291b283a6fe01462d2222bf673b4cd3 (diff) | |
download | craftbukkit-e3d7b2fd9657de5ed1a18a375c028adbce4288cb.tar craftbukkit-e3d7b2fd9657de5ed1a18a375c028adbce4288cb.tar.gz craftbukkit-e3d7b2fd9657de5ed1a18a375c028adbce4288cb.tar.lz craftbukkit-e3d7b2fd9657de5ed1a18a375c028adbce4288cb.tar.xz craftbukkit-e3d7b2fd9657de5ed1a18a375c028adbce4288cb.zip |
Add Block#isPassable
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index f19df71f..f3e06052 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -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 + } } |