Fixed blast furnace crashing the entire server when using "take all"

Fixed blast furnace bar duplication when using "take all"
This commit is contained in:
Ceikry
2023-02-18 07:04:59 +00:00
committed by Ryan
parent 4ee6f3f752
commit 86405d89f4
@@ -74,9 +74,9 @@ class BlastFurnaceInterfaceListener : InterfaceListener {
while(amtToWithdraw > 0){
if(addItem(player, barItemId, amtToWithdraw) && player.blastBars.remove(Item(barItemId))) {
if(addItem(player, barItemId, 1) && player.blastBars.remove(Item(barItemId))) {
amtToWithdraw--
}
} else break
}
if(player.blastBars.isEmpty) player.varpManager.get(543).clear().send(player)
return@on true