Skip to content

Commit dfd30ae

Browse files
fix(CustomNetherPortals): Small typo Causing Havok With Portals (#102)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
1 parent 3b51c27 commit dfd30ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/me/machinemaker/papertweaks/modules/survival/customnetherportals/PortalShapeFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ boolean start() {
102102
final ToIntFunction<Block> flatFunction = this.axis == IgniteListener.Axis.X ? Block::getX : Block::getZ;
103103

104104
final Block maxFlatBlock = Collections.max(this.portalInterior, Comparator.comparingInt(flatFunction));
105-
final Block minFlatBlock = Collections.max(this.portalInterior, Comparator.comparingInt(flatFunction));
105+
final Block minFlatBlock = Collections.min(this.portalInterior, Comparator.comparingInt(flatFunction));
106106

107107
if (flatFunction.applyAsInt(maxFlatBlock) - flatFunction.applyAsInt(minFlatBlock) > config.maxPortalWidth) {
108108
return false;

0 commit comments

Comments
 (0)