Crash fix

This commit is contained in:
Anuken
2023-11-12 21:55:16 -05:00
parent 84eb35ec83
commit 06bacab710
2 changed files with 5 additions and 1 deletions

View File

@@ -444,7 +444,7 @@ public class UnitAssembler extends PayloadBlock{
if(!net.client()){
var unit = plan.unit.create(team);
if(unit != null && unit.isCommandable()){
if(unit != null && unit.isCommandable() && commandPos != null){
unit.command().commandPosition(commandPos);
}
unit.set(spawn.x + Mathf.range(0.001f), spawn.y + Mathf.range(0.001f));