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:
asofold 2013-01-15 18:32:31 +01:00
parent d693d3a690
commit e34ad4fcdf

View File

@ -776,7 +776,7 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
Combined.resetYawRate(player, ref.getYaw(), System.currentTimeMillis(), true);
data.resetTeleported();
processingEvents.remove(player.getName());
hoverTicks.remove(player.getName());
data.sfHoverTicks = -1; // Important against concurrent modification exception.
}
/**