Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
BrandModule: fix not scheduled ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 14, 2023
1 parent 917c764 commit ac020b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public void init() {
}

actionManager.add(new BrandListener(this));
actionManager.add(new BrandTicker(this));

if (config.getBoolean("default." + this + ".update.enable")) {
actionManager.add(new BrandTicker(this));
}
}

public String incrementIndexAndGet(Player player) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ public BrandTicker(FModule module) {

@Override
public void init() {
if (!config.getBoolean("default." + getModule() + ".update.enable")) return;

super.period = config.getInt("default." + getModule() + ".update.rate");
runTaskTimer();
}
Expand Down

0 comments on commit ac020b8

Please sign in to comment.