mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
rebase on news update
This commit is contained in:
parent
dbdce37c74
commit
2bf913293b
2 changed files with 3 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ class AnvilResultListener : Listener {
|
|||
if(!worked) {
|
||||
CustomAnvil.verboseLog("Merge extract failed. reset the displayed price")
|
||||
// Reset the price
|
||||
AnvilXpUtil.setAnvilResult(inventory, view, player, result)
|
||||
AnvilXpUtil.setAnvilResult(view, player, result)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@ object AnvilXpUtil {
|
|||
* Display the required cost (either as xp or as money) or reset anvil price depending on result
|
||||
*/
|
||||
fun setAnvilResult(
|
||||
inventory: AnvilInventory,
|
||||
view: InventoryView,
|
||||
view: AnvilView,
|
||||
player: Player,
|
||||
result: AnvilResult) {
|
||||
if(result.item == null) {
|
||||
|
|
@ -41,7 +40,7 @@ object AnvilXpUtil {
|
|||
return
|
||||
}
|
||||
|
||||
setAnvilInvCost(inventory, view, player, result.cost, result.ignoreXpRules)
|
||||
setAnvilInvCost(view, player, result.cost, result.ignoreXpRules)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue