Skip to content

Commit

Permalink
Merge pull request #6779 from ryanhaney97/fix-rollers-replacing-portals
Browse files Browse the repository at this point in the history
Fix for #6758: Added check for portal blocks when trying to fill.
  • Loading branch information
simibubi authored Aug 6, 2024
2 parents 80f2836 + 803bf45 commit c69716b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,10 @@ protected PaveResult tryFill(MovementContext context, BlockPos targetPos, BlockS
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();
Expand Down

0 comments on commit c69716b

Please sign in to comment.