Support for JSON planets without a parent

This commit is contained in:
Anuken
2023-09-05 09:41:04 -04:00
parent fb3fff40d2
commit 7fa002c626
2 changed files with 2 additions and 1 deletions

View File

@@ -268,6 +268,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
kill();
}
}
case shield -> shield = Math.max((float)value, 0f);
case x -> x = World.unconv((float)value);
case y -> y = World.unconv((float)value);
case rotation -> rotation = (float)value;