fixed harlem shake and directionality in superhot

This commit is contained in:
gnembon committed 2019-09-13 12:06:38 -03:00
1 parent aeceacc733
commit 8ece019f71
3 files changed
+29 -2

No files matched your search

@@ -36,7 +36,9 @@ public class ServerPlayNetworkHandler_tickMixin
))
private void checkMove(PlayerMoveC2SPacket p, CallbackInfo ci)
{
if (p.getX(player.x) - lastTickX > 0.0001D || p.getY(player.y) - lastTickY > 0.0001D || p.getY(player.y) - lastTickY > 0.0001D)
if (Math.abs(p.getX(player.x) - lastTickX) > 0.0001D
|| Math.abs(p.getY(player.y) - lastTickY) > 0.0001D
|| Math.abs(p.getY(player.y) - lastTickY) > 0.0001D)
{
TickSpeed.reset_player_active_timeout();
}