From 65aa4a82c38fb624ad8d95faa8853c2ebd5dff6e Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Wed, 22 Sep 2021 15:31:02 -0400 Subject: [PATCH] Fix null dereference in bunyip special (the cooking map is keyed by raw food, not cooked food). --- .../main/java/core/game/node/entity/npc/familiar/BunyipNPC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/java/core/game/node/entity/npc/familiar/BunyipNPC.java b/Server/src/main/java/core/game/node/entity/npc/familiar/BunyipNPC.java index 5492ace36..34f2c8f28 100644 --- a/Server/src/main/java/core/game/node/entity/npc/familiar/BunyipNPC.java +++ b/Server/src/main/java/core/game/node/entity/npc/familiar/BunyipNPC.java @@ -101,7 +101,7 @@ public class BunyipNPC extends Familiar { player.sendMessage("Error: Report to admin."); return false; } - if (player.getSkills().getLevel(Skills.COOKING) < CookableItems.forId(special.getItem().getId() + 2).level) { + if (player.getSkills().getLevel(Skills.COOKING) < CookableItems.forId(special.getItem().getId()).level) { player.sendMessage("You need a Cooking level of at least " + CookableItems.forId(special.getItem().getId()).level + " in order to do that."); return false; }