Implemented slopes

This commit is contained in:
Anuken
2018-06-12 11:36:55 -04:00
parent 4df0641d67
commit 9abbd8c158
8 changed files with 248 additions and 224 deletions
@@ -189,6 +189,11 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
if(tile.block() != Blocks.air){
onLiquid = false;
}
//on slope
if(tile.elevation == -1){
velocity.scl(0.7f);
}
}
if(onLiquid && velocity.len() > 0.4f && Timers.get(this, "flooreffect", 14 - (velocity.len() * floor.speedMultiplier)*2f)){