From 803bf452507f3cb32121a539edf8486d708c0a8f Mon Sep 17 00:00:00 2001 From: yoshiquest Date: Mon, 5 Aug 2024 14:31:56 -0500 Subject: [PATCH] Added check for portal blocks when trying to fill. --- .../actors/roller/RollerMovementBehaviour.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/actors/roller/RollerMovementBehaviour.java b/src/main/java/com/simibubi/create/content/contraptions/actors/roller/RollerMovementBehaviour.java index 3fd012d12..d47d34358 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/actors/roller/RollerMovementBehaviour.java +++ b/src/main/java/com/simibubi/create/content/contraptions/actors/roller/RollerMovementBehaviour.java @@ -469,9 +469,10 @@ public class RollerMovementBehaviour extends BlockBreakingMovementBehaviour { if (existing.is(toPlace.getBlock())) return PaveResult.PASS; if (!existing.is(BlockTags.LEAVES) && !existing.getMaterial() - .isReplaceable() - && !existing.getCollisionShape(level, targetPos) - .isEmpty()) + .isReplaceable() + && (!existing.getCollisionShape(level, targetPos) + .isEmpty() + || existing.is(BlockTags.PORTALS))) return PaveResult.FAIL; FilterItemStack filter = context.getFilterFromBE();