Fixed edge case bug causing sacks to disappear
This commit is contained in:
@@ -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]))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user