From 8c2307eb83e540f76a2a01bfe67c089ecdd6b140 Mon Sep 17 00:00:00 2001 From: DeltaNedas Date: Sun, 8 Nov 2020 13:13:28 +0000 Subject: [PATCH] sleep --- core/src/mindustry/entities/comp/UnitComp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/comp/UnitComp.java b/core/src/mindustry/entities/comp/UnitComp.java index 8e0298c584..14fdf9c1bc 100644 --- a/core/src/mindustry/entities/comp/UnitComp.java +++ b/core/src/mindustry/entities/comp/UnitComp.java @@ -69,7 +69,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I public float speed(){ //limit speed to minimum formation speed to preserve formation - return isCommanding() ? minFormationSpeed * 0.98f : type.speed; + return isCommanding() ? ((Commanderc)this).minFormationSpeed * 0.98f : type.speed; } /** @return speed with boost multipliers factored in. */