Skip to content

Commit

Permalink
Fix Account#getBukkitWorld
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr committed May 18, 2024
1 parent b0e24c4 commit bad28c3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@ public synchronized boolean payTo(double amount, Account collector, String reaso
*
* @return Bukkit world for the object
*/
@Deprecated
@Nullable
public World getBukkitWorld() {
return BukkitTools.getWorlds().get(0);
return getWorld().getBukkitWorld();
}

@NotNull
public TownyWorld getWorld() {
return this.worldSupplier.get();
}
Expand Down

0 comments on commit bad28c3

Please sign in to comment.