Skip to content

Commit

Permalink
Only register IslandLevelListener if Level addon is present (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
IAISI authored Jul 26, 2024
1 parent 6b5b440 commit da7744b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ private void setupAddon()
//this.registerListener(new MagicGeneratorListener(this));

this.registerListener(new JoinLeaveListener(this));
this.registerListener(new IslandLevelListener(this));
if(this.getAddonByName("Level").isPresent())
this.registerListener(new IslandLevelListener(this));

// Register Flags
this.registerFlag(MAGIC_COBBLESTONE_GENERATOR);
Expand Down

0 comments on commit da7744b

Please sign in to comment.