Physics, pathfinding improvements

This commit is contained in:
Anuken
2018-10-10 11:29:34 -04:00
parent 6b4983537e
commit 05201d7012
6 changed files with 20 additions and 12 deletions
@@ -121,6 +121,15 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
return velocity;
}
@Override
public void move(float x, float y){
if(!isFlying()){
super.move(x, y);
}else{
moveBy(x, y);
}
}
@Override
public void writeSave(DataOutput stream) throws IOException{
writeSave(stream, false);