Make naval units only slow down on "shallow" water

This commit is contained in:
Anuken 2021-10-05 17:06:09 -04:00
parent 0d0fe394d3
commit 3030308f09

View File

@ -88,7 +88,7 @@ abstract class WaterMoveComp implements Posc, Velc, Hitboxc, Flyingc, Unitc{
@Replace @Replace
public float floorSpeedMultiplier(){ public float floorSpeedMultiplier(){
Floor on = isFlying() ? Blocks.air.asFloor() : floorOn(); Floor on = isFlying() ? Blocks.air.asFloor() : floorOn();
return (on.isDeep() ? 1.3f : 1f) * speedMultiplier; return (on.shallow ? 1f : 1.3f) * speedMultiplier;
} }
public boolean onLiquid(){ public boolean onLiquid(){