Fixed JSON sector preset files failing to load

This commit is contained in:
Anuken
2023-05-10 15:57:43 -04:00
parent e60fff43bd
commit 51daa82a1b
3 changed files with 17 additions and 3 deletions

View File

@@ -575,7 +575,7 @@ public class ContentParser{
if(!value.has("sector") || !value.get("sector").isNumber()) throw new RuntimeException("SectorPresets must have a sector number.");
SectorPreset out = new SectorPreset(mod + "-" + name);
SectorPreset out = new SectorPreset(mod + "-" + name, currentMod);
currentContent = out;
read(() -> {