Bugfixes / Testing reaper sprite

This commit is contained in:
Anuken
2020-04-10 12:55:58 -04:00
parent 00f3353976
commit 2395bc9308
9 changed files with 847 additions and 803 deletions

View File

@@ -133,14 +133,14 @@ abstract class UnitComp implements Healthc, Velc, Statusc, Teamc, Itemsc, Hitbox
Tile tile = tileOn();
Floor floor = floorOn();
if(tile != null){
if(tile != null && isGrounded()){
//unit block update
if(tile.entity != null && isGrounded()){
if(tile.entity != null){
tile.entity.unitOn(this);
}
//kill when stuck in wall
if(isGrounded() && tile.solid()){
if(tile.solid()){
kill();
}