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
04ed7ea0b5
commit
0e65575c2b
2 changed files with 3 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ class AnvilResultListener : Listener {
|
||||||
if(!worked) {
|
if(!worked) {
|
||||||
CustomAnvil.verboseLog("Merge extract failed. reset the displayed price")
|
CustomAnvil.verboseLog("Merge extract failed. reset the displayed price")
|
||||||
// Reset the price
|
// Reset the price
|
||||||
AnvilXpUtil.setAnvilResult(inventory, view, player, result)
|
AnvilXpUtil.setAnvilResult(view, player, result)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,7 @@ object AnvilXpUtil {
|
||||||
* Display the required cost (either as xp or as money) or reset anvil price depending on result
|
* Display the required cost (either as xp or as money) or reset anvil price depending on result
|
||||||
*/
|
*/
|
||||||
fun setAnvilResult(
|
fun setAnvilResult(
|
||||||
inventory: AnvilInventory,
|
view: AnvilView,
|
||||||
view: InventoryView,
|
|
||||||
player: Player,
|
player: Player,
|
||||||
result: AnvilResult
|
result: AnvilResult
|
||||||
) {
|
) {
|
||||||
|
|
@ -43,7 +42,7 @@ object AnvilXpUtil {
|
||||||
return
|
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