Update SpawnGroup.java (#9065)

This commit is contained in:
WayZer
2023-09-17 12:22:04 +08:00
committed by GitHub
parent a1061059ab
commit 2b93d39e72

View File

@@ -128,7 +128,7 @@ public class SpawnGroup implements JsonSerializable, Cloneable{
String tname = data.getString("type", "dagger");
type = content.unit(LegacyIO.unitMap.get(tname, tname));
if(type == null) type = UnitTypes.dagger;
if(type == null || type.internal) type = UnitTypes.dagger;
begin = data.getInt("begin", 0);
end = data.getInt("end", never);
spacing = data.getInt("spacing", 1);