Fixed #2591 / Fixed #2591 / Fixed #2589 / Fixed #2587

This commit is contained in:
Anuken
2020-09-18 11:21:50 -04:00
parent c71be9ae32
commit 6b6783f201
21 changed files with 4512 additions and 4335 deletions

View File

@@ -35,6 +35,7 @@ public class PhysicsProcess implements AsyncProcess{
refs.removeAll(ref -> {
if(!ref.entity.isAdded()){
physics.destroyBody(ref.body);
ref.entity.physref(null);
return true;
}
return false;