Merge pull request #6572 from Abextm/fix-carrot

Fix carrots in ChatboxTextInput
This commit is contained in:
Adam
2018-11-19 17:48:15 -05:00
committed by GitHub
3 changed files with 49 additions and 10 deletions

View File

@@ -119,7 +119,14 @@ public abstract class ScriptVMMixin implements RSClient
Object[] arguments = event.getArguments();
if (arguments != null && arguments.length > 0 && arguments[0] instanceof JavaScriptCallback)
{
((JavaScriptCallback) arguments[0]).run(event);
try
{
((JavaScriptCallback) arguments[0]).run(event);
}
catch (Exception e)
{
client.getLogger().error("Error in JavaScriptCallback", e);
}
return;
}