Convert game thread events to singletons (#794)
* Convert game thread events to singletons * Fix checkstyle * Fix copy paste error
This commit is contained in:
@@ -98,7 +98,7 @@ public abstract class ScriptVMMixin implements RSClient
|
||||
return true;
|
||||
}
|
||||
|
||||
ScriptCallbackEvent event = new ScriptCallbackEvent();
|
||||
ScriptCallbackEvent event = ScriptCallbackEvent.INSTANCE;
|
||||
event.setScript(currentScript);
|
||||
event.setEventName(stringOp);
|
||||
client.getCallbacks().post(event);
|
||||
|
||||
Reference in New Issue
Block a user