From 3030308f09d21638b54f3b8fbef86e0b2708cefe Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 5 Oct 2021 17:06:09 -0400 Subject: [PATCH] Make naval units only slow down on "shallow" water --- core/src/mindustry/entities/comp/WaterMoveComp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/comp/WaterMoveComp.java b/core/src/mindustry/entities/comp/WaterMoveComp.java index bf5c15a5f0..b1e223df62 100644 --- a/core/src/mindustry/entities/comp/WaterMoveComp.java +++ b/core/src/mindustry/entities/comp/WaterMoveComp.java @@ -88,7 +88,7 @@ abstract class WaterMoveComp implements Posc, Velc, Hitboxc, Flyingc, Unitc{ @Replace public float floorSpeedMultiplier(){ Floor on = isFlying() ? Blocks.air.asFloor() : floorOn(); - return (on.isDeep() ? 1.3f : 1f) * speedMultiplier; + return (on.shallow ? 1f : 1.3f) * speedMultiplier; } public boolean onLiquid(){