Fixed bug in server monitor.

re-enabled animal spawn in hub.
This commit is contained in:
Jonathan Williams 2014-08-26 02:02:31 -07:00
parent 064b0e8b36
commit 5fdf466722
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public class WorldManager extends MiniPlugin
Manager = manager;
}
//@EventHandler
@EventHandler
public void SpawnAnimals(UpdateEvent event)
{
if (event.getType() != UpdateType.SLOW)

View File

@ -231,7 +231,7 @@ public class ServerMonitor
int availableSlots = serverGroup.getMaxPlayerCount() - serverGroup.getPlayerCount();
if (availableSlots < 1500)
serversToAdd = Math.max(1, (1500 / availableSlots) - serverGroup.getMaxPlayers());
serversToAdd = Math.max(1, (1500 - availableSlots) / serverGroup.getMaxPlayers());
else if (serversToKill > 0)
serversToKill = Math.min(serversToKill, (availableSlots - 1500) / 80);
}