diff --git a/core/src/mindustry/async/PhysicsProcess.java b/core/src/mindustry/async/PhysicsProcess.java index c62281802c..4d7bc59aae 100644 --- a/core/src/mindustry/async/PhysicsProcess.java +++ b/core/src/mindustry/async/PhysicsProcess.java @@ -38,7 +38,7 @@ public class PhysicsProcess implements AsyncProcess{ //find Unit without bodies and assign them for(Unit entity : group){ - if(entity.type == null) continue; + if(entity == null || entity.type == null) continue; if(entity.physref == null){ PhysicsBody body = new PhysicsBody();