Fixed setProp x/y not teleporting on strict servers

This commit is contained in:
Anuken
2023-09-22 10:06:43 -04:00
parent 71e049d92d
commit f633fb0af5
13 changed files with 37 additions and 30 deletions

View File

@@ -269,8 +269,14 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
}
}
case shield -> shield = Math.max((float)value, 0f);
case x -> x = World.unconv((float)value);
case y -> y = World.unconv((float)value);
case x -> {
x = World.unconv((float)value);
if(!isLocal()) snapInterpolation();
}
case y -> {
y = World.unconv((float)value);
if(!isLocal()) snapInterpolation();
}
case rotation -> rotation = (float)value;
case team -> {
if(!net.client()){