Skip to content

Commit

Permalink
Fix Folia Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gmitch215 committed Mar 23, 2024
1 parent 68e0d19 commit d189d8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -988,15 +988,15 @@ public void onEnable() {

INTEREST_RUNNABLE.runTaskTimer(this, getInterestTicks(), getInterestTicks());
TAXES_RUNNABLE.runTaskTimer(this, getTaxesTicks(), getTaxesTicks());
scheduler.syncRepeating(TICK_TASK, 0L, 1L);
scheduler.syncRepeating(TICK_TASK, 1L, 1L);

for (Player p : Bukkit.getOnlinePlayers()) w.addPacketInjector(p);

AUTOMATIC_SUPPLY_COUNT.putAll(Business.getBusinesses().stream()
.map(b -> new AbstractMap.SimpleEntry<>(b, 0L))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue))
);
scheduler.asyncRepeating(AUTOMATIC_SUPPLY_RUNNABLE, 0L, 20L);
scheduler.asyncRepeating(AUTOMATIC_SUPPLY_RUNNABLE, 20L, 20L);

getLogger().info("Loaded Core Functionality...");

Expand Down

0 comments on commit d189d8d

Please sign in to comment.