forked from 2009Scape/Server
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)
|
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]))
|
player.inventory.add(Item(container.containers[specific + appropriateProduce.amount]))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue