Quiet down warning for missing translation files.
This commit is contained in:
parent
4d378c38d1
commit
a886dbde49
1 changed files with 4 additions and 3 deletions
|
@ -251,7 +251,7 @@ public class FMLServerHandler implements IFMLSidedHandler
|
|||
throw new FileNotFoundException(source.toURI().resolve(langFile).getPath());
|
||||
stream = new FileInputStream(f);
|
||||
}
|
||||
else
|
||||
else if (source.exists()) //Fake sources.. Yay coremods -.-
|
||||
{
|
||||
zip = new ZipFile(source);
|
||||
ZipEntry entry = zip.getEntry(langFile);
|
||||
|
@ -259,11 +259,12 @@ public class FMLServerHandler implements IFMLSidedHandler
|
|||
if (entry == null) throw new FileNotFoundException(langFile);
|
||||
stream = zip.getInputStream(entry);
|
||||
}
|
||||
if (stream != null)
|
||||
LanguageMap.inject(stream);
|
||||
}
|
||||
catch (FileNotFoundException e)
|
||||
{
|
||||
FMLLog.log.warn("Missing English translation for {}: {}", container.getModId(), e.getMessage(), e);
|
||||
FMLLog.log.warn("Missing English translation for {}: {}", container.getModId(), e.getMessage());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue