diff options
author | md_5 <git@md-5.net> | 2018-01-10 10:47:26 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-01-10 10:47:26 +1100 |
commit | 67b763c5a7a54a8d63c9b83b1b886d65392fe02b (patch) | |
tree | 38fe73923b62504c557b1d7642a777f58c796f40 | |
parent | 1dced6a2c58fa1113fb2c123c8f066991fd73d8b (diff) | |
download | craftbukkit-67b763c5a7a54a8d63c9b83b1b886d65392fe02b.tar craftbukkit-67b763c5a7a54a8d63c9b83b1b886d65392fe02b.tar.gz craftbukkit-67b763c5a7a54a8d63c9b83b1b886d65392fe02b.tar.lz craftbukkit-67b763c5a7a54a8d63c9b83b1b886d65392fe02b.tar.xz craftbukkit-67b763c5a7a54a8d63c9b83b1b886d65392fe02b.zip |
Fix Block PistonMoveReaction
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index ba1cdc18..46670c34 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -442,7 +442,7 @@ public class CraftBlock implements Block { } public PistonMoveReaction getPistonMoveReaction() { - return PistonMoveReaction.getById(getNMSBlock().getBlockData().getMaterial().getPushReaction().ordinal()); + return PistonMoveReaction.getById(getNMSBlock().h(getNMSBlock().fromLegacyData(getData())).ordinal()); } private boolean itemCausesDrops(ItemStack item) { |