mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 15:56:02 +00:00
Fix up a deep crash in the early server init hanging the client
This commit is contained in:
1 parent
25981706ef
commit
0950b9fc84
4 files changed
+25
-6
No files matched your search
@@ -207,7 +207,7 @@ public class FMLServerHandler implements IFMLSidedHandler
|
||||
public void addModAsResource(ModContainer container)
|
||||
{
|
||||
File source = container.getSource();
|
||||
try
|
||||
try
|
||||
{
|
||||
if (source.isDirectory())
|
||||
{
|
||||
@@ -218,9 +218,9 @@ public class FMLServerHandler implements IFMLSidedHandler
|
||||
searchZipForENUSLanguage(source);
|
||||
}
|
||||
}
|
||||
catch (IOException ioe)
|
||||
catch (IOException ioe)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
private static final Pattern assetENUSLang = Pattern.compile("assets/(.*)/lang/en_US.lang");
|
||||
@@ -258,11 +258,17 @@ public class FMLServerHandler implements IFMLSidedHandler
|
||||
@Override
|
||||
public void updateResourcePackList()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
@Override
|
||||
public String getCurrentLanguage()
|
||||
{
|
||||
return "en_US";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serverStopped()
|
||||
{
|
||||
// NOOP
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user