From c42daa5dba122e8314f2f266d506a457c9ab35b9 Mon Sep 17 00:00:00 2001 From: Logg Date: Thu, 2 Mar 2023 12:26:19 +0000 Subject: [PATCH] Fixed sequence rune pouches are dropped in --- .../skill/runecrafting/abyss/AbyssalNPC.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Server/src/main/content/global/skill/runecrafting/abyss/AbyssalNPC.java b/Server/src/main/content/global/skill/runecrafting/abyss/AbyssalNPC.java index 0f55805dd..f713fb69b 100644 --- a/Server/src/main/content/global/skill/runecrafting/abyss/AbyssalNPC.java +++ b/Server/src/main/content/global/skill/runecrafting/abyss/AbyssalNPC.java @@ -67,20 +67,19 @@ public final class AbyssalNPC extends AbstractNPC { * @return the pouch. */ private Item getPouch(Player player) { - Item pouch = RunePouch.SMALL.getPouch(); - if (player.hasItem(pouch)) { - pouch = RunePouch.MEDIUM.getPouch(); + if (!player.hasItem(RunePouch.SMALL.getPouch())) { + return RunePouch.SMALL.getPouch(); } - if (player.hasItem(RunePouch.MEDIUM.getPouch()) || player.hasItem(RunePouch.MEDIUM.getDecayedPouch())) { - pouch = RunePouch.LARGE.getPouch(); + if (!player.hasItem(RunePouch.MEDIUM.getPouch()) && !player.hasItem(RunePouch.MEDIUM.getDecayedPouch())) { + return RunePouch.MEDIUM.getPouch(); } - if (player.hasItem(RunePouch.LARGE.getPouch()) || player.hasItem(RunePouch.LARGE.getDecayedPouch())) { - pouch = RunePouch.GIANT.getPouch(); + if (!player.hasItem(RunePouch.LARGE.getPouch()) && !player.hasItem(RunePouch.LARGE.getDecayedPouch())) { + return RunePouch.LARGE.getPouch(); } - if (player.hasItem(RunePouch.GIANT.getPouch()) || player.hasItem(RunePouch.GIANT.getDecayedPouch())) { - pouch = null; + if (!player.hasItem(RunePouch.GIANT.getPouch()) && !player.hasItem(RunePouch.GIANT.getDecayedPouch())) { + return RunePouch.GIANT.getPouch(); } - return pouch; + return null; } @Override