From 01602c8e7733e26fe15847dac22cec82ff432487 Mon Sep 17 00:00:00 2001 From: Snownee Date: Thu, 24 Dec 2020 18:15:36 +0800 Subject: [PATCH] Fix: Honey block don't have same ability as slime block (#576) --- .../components/structureMovement/Contraption.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/Contraption.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/Contraption.java index d390ef680..a38f76173 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/Contraption.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/Contraption.java @@ -297,14 +297,14 @@ public abstract class Contraption { Map superglue = SuperGlueHandler.gatherGlue(world, pos); // Slime blocks and super glue drag adjacent blocks if possible - boolean isSlimeBlock = state.getBlock() instanceof SlimeBlock; + boolean isStickyBlock = state.isStickyBlock(); for (Direction offset : Iterate.directions) { BlockPos offsetPos = pos.offset(offset); BlockState blockState = world.getBlockState(offsetPos); if (isAnchoringBlockAt(offsetPos)) continue; if (!movementAllowed(world, offsetPos)) { - if (offset == forcedDirection && isSlimeBlock) + if (offset == forcedDirection && isStickyBlock) return false; continue; } @@ -315,7 +315,7 @@ public abstract class Contraption { BlockMovementTraits.isBlockAttachedTowards(world, offsetPos, blockState, offset.getOpposite()); boolean brittle = BlockMovementTraits.isBrittle(blockState); - if (!wasVisited && ((isSlimeBlock && !brittle) || blockAttachedTowardsFace || faceHasGlue)) + if (!wasVisited && ((isStickyBlock && !brittle) || blockAttachedTowardsFace || faceHasGlue)) frontier.add(offsetPos); if (faceHasGlue) addGlue(superglue.get(offset));