improved silver smelting (with moulds) pulse handling

This commit is contained in:
ryannathans
2022-01-28 16:58:38 +11:00
parent 6024e47512
commit b2c5f62303
@@ -66,7 +66,7 @@ class SilverInterface : InterfaceListener() {
fun make(player: Player, product: SilverProduct, amount: Int){ fun make(player: Player, product: SilverProduct, amount: Int){
var amt = amount var amt = amount
closeInterface(player) closeInterface(player)
submitWorldPulse(object : Pulse(){ submitIndividualPulse(player, object : Pulse(){
override fun pulse(): Boolean { override fun pulse(): Boolean {
if(amt < 1) return true if(amt < 1) return true
if(!inInventory(player, product.needed) || !inInventory(player, Items.SILVER_BAR_2355)) return true; if(!inInventory(player, product.needed) || !inInventory(player, Items.SILVER_BAR_2355)) return true;