mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-10 04:40:10 +07:00
Fixed network error
This commit is contained in:
parent
a6da8cb02f
commit
0e6b122106
@ -83,6 +83,7 @@ public class Units{
|
|||||||
|
|
||||||
@Remote(called = Loc.server)
|
@Remote(called = Loc.server)
|
||||||
public static void unitDespawn(Unit unit){
|
public static void unitDespawn(Unit unit){
|
||||||
|
if(unit == null) return;
|
||||||
Fx.unitDespawn.at(unit.x, unit.y, 0, unit);
|
Fx.unitDespawn.at(unit.x, unit.y, 0, unit);
|
||||||
unit.remove();
|
unit.remove();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user