mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Always fire SubjectDataUpdateEvent async
This commit is contained in:
parent
68e4d36f40
commit
f93e8fdccd
@ -39,7 +39,9 @@ public class UpdateEventHandlerImpl implements UpdateEventHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void fireUpdateEvent(LPSubjectData subjectData) {
|
public void fireUpdateEvent(LPSubjectData subjectData) {
|
||||||
SubjectDataUpdateEvent event = new LPSubjectDataUpdateEvent(this.plugin, subjectData);
|
this.plugin.getBootstrap().getScheduler().doAsync(() -> {
|
||||||
this.plugin.getBootstrap().getGame().getEventManager().post(event);
|
SubjectDataUpdateEvent event = new LPSubjectDataUpdateEvent(this.plugin, subjectData);
|
||||||
|
this.plugin.getBootstrap().getGame().getEventManager().post(event);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user