Convert game thread events to singletons (#794)

* Convert game thread events to singletons

* Fix checkstyle

* Fix copy paste error
This commit is contained in:
Owain van Brakel
2019-06-28 22:11:57 +02:00
committed by James
parent 23f6463024
commit 38d9800d10
102 changed files with 756 additions and 220 deletions

View File

@@ -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);