From bad28c3f309db0f62d51db05db22b8c6e056a9e6 Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Sat, 18 May 2024 19:47:34 +0200 Subject: [PATCH] Fix Account#getBukkitWorld --- .../com/palmergames/bukkit/towny/object/economy/Account.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/object/economy/Account.java b/Towny/src/main/java/com/palmergames/bukkit/towny/object/economy/Account.java index 8962771536..78f4b21dfd 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/object/economy/Account.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/object/economy/Account.java @@ -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(); }