Fix infinite loop in GameWorldManager

This commit is contained in:
cnr 2016-10-25 01:43:42 -05:00
parent d6dc750ece
commit 44e016f272

View File

@ -39,7 +39,7 @@ public class GameWorldManager implements Listener
while (worldIterator.hasNext()) while (worldIterator.hasNext())
{ {
long timeLeft = endTime - System.currentTimeMillis(); long timeLeft = endTime - System.currentTimeMillis();
if (timeLeft <= 0) continue; if (timeLeft <= 0) break;
final WorldData worldData = worldIterator.next(); final WorldData worldData = worldIterator.next();