Fixed mechs not having animations on multiplayer

This commit is contained in:
Anuken
2020-09-29 10:57:06 -04:00
parent 5523ea4752
commit 521ca1aea4
3 changed files with 11 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ abstract class MechComp implements Posc, Flyingc, Hitboxc, Unitc, Mechc, Elevati
@Override
public void update(){
//trigger animation only when walking manually
if(walked){
if(walked || net.client()){
float len = deltaLen();
baseRotation = Angles.moveToward(baseRotation, deltaAngle(), type().baseRotateSpeed * Mathf.clamp(len / type().speed / Time.delta) * Time.delta);
walkTime += len;