Handle empty lines in language files gracefully

This commit is contained in:
diesieben07 2015-02-13 15:34:54 +01:00
parent c85aa9351a
commit 1a2c521b63
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ public class FMLCommonHandler
boolean isEnhanced = false;
for (String line : IOUtils.readLines(new ByteArrayInputStream(data), Charsets.UTF_8))
{
if (line.charAt(0) == '#')
if (!line.isEmpty() && line.charAt(0) == '#')
{
line = line.substring(1).trim();
if (line.equals("PARSE_ESCAPES"))