From 5365014d4f72ea8bf55b18e20af47c33c5f8d6b3 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 15 Mar 2024 14:14:53 -0400 Subject: [PATCH] Sector preset init fix --- core/src/mindustry/type/SectorPreset.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/type/SectorPreset.java b/core/src/mindustry/type/SectorPreset.java index 3c6b885d8d..b23c909de2 100644 --- a/core/src/mindustry/type/SectorPreset.java +++ b/core/src/mindustry/type/SectorPreset.java @@ -39,8 +39,10 @@ public class SectorPreset extends UnlockableContent{ /** Internal use only! */ public SectorPreset(String name, LoadedMod mod){ super(name); - this.minfo.mod = mod; - this.generator = new FileMapGenerator(name, this); + if(mod != null){ + this.minfo.mod = mod; + } + this.generator = new FileMapGenerator(this.name, this); } /** Internal use only! */