mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-31 01:44:22 +07:00
Fix things being detached from mech sway. (#7480)
This commit is contained in:
parent
7189be69b0
commit
cd6332900b
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user