From 58909a06a541ad51d3c2deeb540c6176a293cb9a Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 29 Sep 2025 12:48:26 -0400 Subject: [PATCH] Fixed #11254 --- core/src/mindustry/game/SectorInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/game/SectorInfo.java b/core/src/mindustry/game/SectorInfo.java index 9d8e1c97ff..dcb34e7eff 100644 --- a/core/src/mindustry/game/SectorInfo.java +++ b/core/src/mindustry/game/SectorInfo.java @@ -108,7 +108,7 @@ public class SectorInfo{ /** @return whether the sector was last saved with the same preset. if false, this means the preset changed, and thus the spawn/plan data should be discarded. */ public boolean sectorDataMatches(Sector sector){ - if(sector.preset != null && (sector.preset.generator.map.width != lastWidth || sector.preset.generator.map.width != lastHeight)){ + if(sector.preset != null && (sector.preset.generator.map.width != lastWidth || sector.preset.generator.map.height != lastHeight)){ return false; } return Structs.eq(sector.preset == null ? null : sector.preset.name, lastPresetName);