Merge pull request #6779 from ryanhaney97/fix-rollers-replacing-portals

Fix for #6758: Added check for portal blocks when trying to fill.
This commit is contained in:
simibubi 2024-08-06 14:19:43 +02:00 committed by GitHub
commit c69716bf7e
Failed to generate hash of commit

View file

@ -470,8 +470,9 @@ public class RollerMovementBehaviour extends BlockBreakingMovementBehaviour {
return PaveResult.PASS;
if (!existing.is(BlockTags.LEAVES) && !existing.getMaterial()
.isReplaceable()
&& !existing.getCollisionShape(level, targetPos)
.isEmpty())
&& (!existing.getCollisionShape(level, targetPos)
.isEmpty()
|| existing.is(BlockTags.PORTALS)))
return PaveResult.FAIL;
FilterItemStack filter = context.getFilterFromBE();