Possible corner death fix

This commit is contained in:
Anuken
2023-08-29 17:51:45 -04:00
parent 16223af87d
commit e3b815a4c6
6 changed files with 10 additions and 4 deletions

View File

@@ -81,8 +81,8 @@ public class EntityCollisions{
if(tmp.overlaps(r1)){
Vec2 v = Geometry.overlap(r1, tmp, x);
if(x) r1.x += v.x;
if(!x) r1.y += v.y;
r1.x += v.x;
r1.y += v.y;
}
}
}