Added check for portal blocks when trying to fill.

This commit is contained in:
yoshiquest 2024-08-05 14:31:56 -05:00
parent 2e91e16932
commit 803bf45250

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();