From 9f9a759221cbfefc71c667891340928d2d6e1310 Mon Sep 17 00:00:00 2001 From: downthecrop Date: Sat, 27 Nov 2021 08:37:10 +0000 Subject: [PATCH] Quest Point Cape Login Check Fix --- CHANGELOG | 1 + .../core/game/interaction/player/LoginValidationPlugin.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 60e1f61d5..b0f2e9398 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -60,3 +60,4 @@ < ---- ABOVE Released NOVEMBER 22, 2021 https://gitlab.com/2009scape/2009scape/-/tags/Nov-22-2021 ---- > - Animations for passing through Isafdar Dense Forest added - Implement Wire Traps, Leaf Traps, and Stick Traps in Isafdar +- Quest point cape/hood no longer unequip on login if wearing QP hood \ No newline at end of file diff --git a/Server/src/main/java/core/game/interaction/player/LoginValidationPlugin.java b/Server/src/main/java/core/game/interaction/player/LoginValidationPlugin.java index e9dad37f2..f152c354f 100644 --- a/Server/src/main/java/core/game/interaction/player/LoginValidationPlugin.java +++ b/Server/src/main/java/core/game/interaction/player/LoginValidationPlugin.java @@ -76,7 +76,9 @@ public final class LoginValidationPlugin implements Plugin { * @param player the player. */ private static void checkQuestPointsItems(final Player player) { - if (!player.getQuestRepository().hasCompletedAll() && player.getEquipment().contains(9813, 1) || player.getEquipment().contains(9814, 1)) { + if (!player.getQuestRepository().hasCompletedAll() && + (player.getEquipment().contains(9813, 1) || player.getEquipment().contains(9814, 1)) + ) { for (Item i : QUEST_ITEMS) { if (player.getEquipment().remove(i)) { player.getDialogueInterpreter().sendItemMessage(i, "As you no longer have completed all the quests, your " + i.getName() + " unequips itself to your " + (player.getInventory().freeSlots() < 1 ? "bank" : "inventory") + "!");