diff --git a/RuriLib/Blocks/BlockFunction.cs b/RuriLib/Blocks/BlockFunction.cs index 83e40f8..67a1728 100644 --- a/RuriLib/Blocks/BlockFunction.cs +++ b/RuriLib/Blocks/BlockFunction.cs @@ -296,7 +296,7 @@ namespace RuriLib if (LineParser.Lookahead(ref input) == TokenType.Boolean) LineParser.SetBool(ref input, this); TranslationDictionary = new Dictionary(); - while (LineParser.Lookahead(ref input) == TokenType.Parameter) + while (input != "" && LineParser.Lookahead(ref input) == TokenType.Parameter) { LineParser.EnsureIdentifier(ref input, "KEY"); var k = LineParser.ParseLiteral(ref input, "Key"); @@ -993,7 +993,7 @@ namespace RuriLib { var split = line.Split(new[] { ':' }, 2); var key = split[0]; - var val = split[1]; + var val = split[1].TrimStart(); TranslationDictionary[key] = val; } }