Skip to content

Commit

Permalink
Fixed load order again
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Feb 17, 2021
1 parent 104d55c commit b4d5907
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,6 @@ public final void onEnable() {

this.getScheduler().runLater(this::afterLoad, 1);

if (this.getDisplayModule() != null) {
Display.registerDisplayModule(this.getDisplayModule());
}

this.updatableClasses.forEach(clazz -> this.getConfigHandler().registerUpdatableClass(clazz));

this.enable();
Expand Down Expand Up @@ -301,6 +297,10 @@ public final void onLoad() {
public final void afterLoad() {
this.displayModule = createDisplayModule();

if (this.getDisplayModule() != null) {
Display.registerDisplayModule(this.getDisplayModule());
}

this.getPacketAdapters().forEach(abstractPacketAdapter -> {
if (abstractPacketAdapter.isPostLoad()) {
abstractPacketAdapter.register();
Expand Down

0 comments on commit b4d5907

Please sign in to comment.