From cd6332900be6a937bc7334fad370554615a735f6 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Mon, 12 Sep 2022 06:59:18 -0700 Subject: [PATCH] Fix things being detached from mech sway. (#7480) --- core/src/mindustry/type/UnitType.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index eac7325f0e..58a9ae756a 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -1181,10 +1181,6 @@ public class UnitType extends UnlockableContent{ drawShield(unit); } - if(mech != null){ - unit.trns(-legOffset.x, -legOffset.y); - } - //TODO how/where do I draw under? if(parts.size > 0){ for(int i = 0; i < parts.size; i++){ @@ -1212,6 +1208,10 @@ public class UnitType extends UnlockableContent{ } } + if(mech != null){ + unit.trns(-legOffset.x, -legOffset.y); + } + Draw.reset(); }