mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Merge pull request #599 from diesieben07/master
Handle empty lines in language files gracefully
This commit is contained in:
commit
316ec27e77
1 file changed
+1
-1
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user