mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 23:11:12 -08:00
Research bugfixes
This commit is contained in:
parent
4385cb8a88
commit
cfbfa0844d
7 changed files with 34 additions and 14 deletions
|
|
@ -384,7 +384,11 @@ public class ContentParser{
|
|||
|
||||
if(!value.has("sector") || !value.get("sector").isNumber()) throw new RuntimeException("SectorPresets must have a sector number.");
|
||||
|
||||
return new SectorPreset(name, locate(ContentType.planet, value.getString("planet", "serpulo")), value.getInt("sector"));
|
||||
SectorPreset out = new SectorPreset(name, locate(ContentType.planet, value.getString("planet", "serpulo")), value.getInt("sector"));
|
||||
value.remove("sector");
|
||||
value.remove("planet");
|
||||
read(() -> readFields(out, value));
|
||||
return out;
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue