We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b51c27 commit dfd30aeCopy full SHA for dfd30ae
1 file changed
src/main/java/me/machinemaker/papertweaks/modules/survival/customnetherportals/PortalShapeFinder.java
@@ -102,7 +102,7 @@ boolean start() {
102
final ToIntFunction<Block> flatFunction = this.axis == IgniteListener.Axis.X ? Block::getX : Block::getZ;
103
104
final Block maxFlatBlock = Collections.max(this.portalInterior, Comparator.comparingInt(flatFunction));
105
- final Block minFlatBlock = Collections.max(this.portalInterior, Comparator.comparingInt(flatFunction));
+ final Block minFlatBlock = Collections.min(this.portalInterior, Comparator.comparingInt(flatFunction));
106
107
if (flatFunction.applyAsInt(maxFlatBlock) - flatFunction.applyAsInt(minFlatBlock) > config.maxPortalWidth) {
108
return false;
0 commit comments