Skip to content

Commit

Permalink
Call NewResidentThread sync on folia (#7394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored May 8, 2024
1 parent cb44a20 commit cab7e61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void run() {
}

resident.save();
BukkitTools.fireEvent(new NewResidentEvent(resident));
plugin.getScheduler().run(player, () -> BukkitTools.fireEvent(new NewResidentEvent(finalResident)));

} catch (NotRegisteredException e) {
plugin.getLogger().log(Level.WARNING, "Could not register resident '" + player.getName() + "' (" + player.getUniqueId() + ") due to an error, Towny features might be limited for this player until it is resolved", e);
Expand Down

0 comments on commit cab7e61

Please sign in to comment.