Misc bugfixes

This commit is contained in:
Anuken
2021-12-08 14:28:27 -05:00
parent 6c10a400ed
commit 5fbfe52d0a
12 changed files with 206 additions and 46 deletions

View File

@@ -33,6 +33,15 @@ public class Units{
}
}
@Remote(called = Loc.server)
public static void unitEnvDeath(Unit unit){
if(unit != null){
unit.dead = true;
Fx.unitEnvKill.at(unit);
Core.app.post(() -> Call.unitDestroy(unit.id));
}
}
@Remote(called = Loc.server)
public static void unitDeath(int uid){
Unit unit = Groups.unit.getByID(uid);