forked from 2009Scape/Server
Fixed a bug where opening a casket could remove the wrong one from the inventory
This commit is contained in:
parent
cb753f2a12
commit
463a0900d7
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ public enum ClueLevel {
|
|||
|
||||
Item newClue = ClueScrollPlugin.getClue(clueLevel);
|
||||
|
||||
if (casket != null && player.getInventory().remove(casket)) {
|
||||
if (casket != null && player.getInventory().remove(casket, casket.getSlot(), true)) {
|
||||
player.getInventory().replace(newClue, casket.getSlot());
|
||||
} else {
|
||||
player.getInventory().add(newClue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue