mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Fixed edge case bug causing sacks to disappear
This commit is contained in:
parent
a7b29d7615
commit
9e690c1877
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class SackBasketOptionHandler : OptionHandler() {
|
|||
appropriateProduce.amount = (max - specific)
|
||||
}
|
||||
|
||||
if(player.inventory.remove(item) && player.inventory.remove(appropriateProduce))
|
||||
if(player.inventory.remove(appropriateProduce) && player.inventory.remove(item))
|
||||
player.inventory.add(Item(container.containers[specific + appropriateProduce.amount]))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue