Crash fix
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user