forked from 2009Scape/Server
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:
parent
4ee6f3f752
commit
86405d89f4
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue