Fix refreshResources not happening if an error occurs.

This commit is contained in:
Christian committed 2014-04-30 21:55:55 -04:00
1 parent 810b1f3075
commit fff86ee9d3
5 files changed
+9 -21

No files matched your search

@@ -34,6 +34,7 @@ import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.ModContainer;
import cpw.mods.fml.common.StartupQuery;
import cpw.mods.fml.common.eventhandler.EventBus;
import cpw.mods.fml.common.functions.GenericIterableFactory;
import cpw.mods.fml.common.network.FMLNetworkEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.relauncher.Side;
@@ -176,7 +177,8 @@ public class FMLServerHandler implements IFMLSidedHandler
// rudimentary command processing, check for fml confirm/cancel and stop commands
synchronized (dedServer.pendingCommandList)
{
for (Iterator<ServerCommand> it = dedServer.pendingCommandList.iterator(); it.hasNext(); )
for (Iterator<ServerCommand> it = GenericIterableFactory.newCastingIterable(dedServer.pendingCommandList, ServerCommand.class).iterator(); it.hasNext();)
{
String cmd = it.next().command.trim().toLowerCase();
@@ -219,11 +221,6 @@ public class FMLServerHandler implements IFMLSidedHandler
LanguageRegistry.instance().loadLanguagesFor(container, Side.SERVER);
}
@Override
public void updateResourcePackList()
{
}
@Override
public String getCurrentLanguage()
{