Skip to content

Commit

Permalink
Merge pull request #556 from rlnt/dev/1.20.1
Browse files Browse the repository at this point in the history
Improve conduit same block placement check
  • Loading branch information
Rover656 authored Nov 11, 2023
2 parents 7597ad6 + 80e56aa commit fe08f3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public RightClickAction addType(Level level, IConduitType<?> type, Player player
}

//some conduit says no (like higher energy conduit)
if (types.stream().anyMatch(existingConduit -> !existingConduit.canBeInSameBlock(type))) {
if (types.stream().anyMatch(existingConduit -> !existingConduit.canBeInSameBlock(type) || !type.canBeInSameBlock(existingConduit))) {
return new RightClickAction.Blocked();
}

Expand Down

0 comments on commit fe08f3f

Please sign in to comment.