Bugfixes (2)

This commit is contained in:
Anuken 2020-09-12 23:43:03 -04:00
parent 4d6c8ade98
commit 1fd98fe07c

View File

@ -43,7 +43,7 @@ public class PhysicsProcess implements AsyncProcess{
//find entities without bodies and assign them
for(Physicsc entity : group){
boolean grounded = entity.isGrounded();
int bits = grounded ? flying.maskBits : ground.maskBits;
int bits = grounded ? ground.maskBits : flying.maskBits;
if(entity.physref() == null){
//add bodies to entities that have none