From 7e3f8737711e5b87e00478f779b36a01ac030bbe Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 10 Jan 2018 10:47:26 +1100 Subject: [PATCH] Fix Block PistonMoveReaction By: md_5 --- .../src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index ba1cdc18fe..46670c3466 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/paper-server/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) {