forked from 2009Scape/Server
Fix null dereference in bunyip special (the cooking map is keyed by raw food, not cooked food).
This commit is contained in:
parent
9c18af8f8d
commit
65aa4a82c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue