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:
@@ -74,9 +74,9 @@ class BlastFurnaceInterfaceListener : InterfaceListener {
|
|||||||
|
|
||||||
|
|
||||||
while(amtToWithdraw > 0){
|
while(amtToWithdraw > 0){
|
||||||
if(addItem(player, barItemId, amtToWithdraw) && player.blastBars.remove(Item(barItemId))) {
|
if(addItem(player, barItemId, 1) && player.blastBars.remove(Item(barItemId))) {
|
||||||
amtToWithdraw--
|
amtToWithdraw--
|
||||||
}
|
} else break
|
||||||
}
|
}
|
||||||
if(player.blastBars.isEmpty) player.varpManager.get(543).clear().send(player)
|
if(player.blastBars.isEmpty) player.varpManager.get(543).clear().send(player)
|
||||||
return@on true
|
return@on true
|
||||||
|
|||||||
Reference in New Issue
Block a user