improved silver smelting (with moulds) pulse handling
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user