Always fire SubjectDataUpdateEvent async

This commit is contained in:
Luck 2018-03-03 16:27:43 +00:00
parent 68e4d36f40
commit f93e8fdccd
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -39,7 +39,9 @@ public class UpdateEventHandlerImpl implements UpdateEventHandler {
@Override
public void fireUpdateEvent(LPSubjectData subjectData) {
this.plugin.getBootstrap().getScheduler().doAsync(() -> {
SubjectDataUpdateEvent event = new LPSubjectDataUpdateEvent(this.plugin, subjectData);
this.plugin.getBootstrap().getGame().getEventManager().post(event);
});
}
}