Skip to content

Commit

Permalink
Fix issue when reloading on folia (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored May 27, 2024
1 parent e7fef57 commit 8903be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public void reload() throws IOException {
layerManager.close();
layerManager = new TownyLayerManager(this, mapPlatform);
Bukkit.getPluginManager().callEvent(new MapReloadEvent()); // API Event
scheduler.scheduleRepeatingTask(new RenderTownsTask(this), 0, config.getUpdatePeriod() * 20L * 60);
scheduler.scheduleRepeatingTask(new RenderTownsTask(this), 20, config.getUpdatePeriod() * 20L * 60);
}

public void async(Runnable run) {
Expand Down
1 change: 1 addition & 0 deletions maptowny-plugin/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ depend: [ Towny ]
softdepend: [ squaremap, Pl3xMap, dynmap, BlueMap ]
authors: [ Silverwolfg11 ]
description: A web-map addon to support Towny.
folia-supported: true

commands:
maptowny:
Expand Down

0 comments on commit 8903be1

Please sign in to comment.