mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-14 03:21:24 +01:00
Fix concurrent modification exception for a part.
Only set the hover ticks on teleporting events. On setting back players in MovingListener.onTick, this will be prevented now. However actions might still cause trouble, so some non-blocking stuff would be good here (a removeFroHover set, some other way of keeping track).
This commit is contained in:
parent
d693d3a690
commit
e34ad4fcdf
@ -776,7 +776,7 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
Combined.resetYawRate(player, ref.getYaw(), System.currentTimeMillis(), true);
|
Combined.resetYawRate(player, ref.getYaw(), System.currentTimeMillis(), true);
|
||||||
data.resetTeleported();
|
data.resetTeleported();
|
||||||
processingEvents.remove(player.getName());
|
processingEvents.remove(player.getName());
|
||||||
hoverTicks.remove(player.getName());
|
data.sfHoverTicks = -1; // Important against concurrent modification exception.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user