mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
Fix enchant cost not updating for 1.16.5
This commit is contained in:
parent
015c0ec5fe
commit
b8bcf09df7
1 changed files with 3 additions and 1 deletions
|
|
@ -549,10 +549,12 @@ class AnvilEventListener(private val packetManager: PacketManager) : Listener {
|
|||
else
|
||||
{ ConfigOptions.maxAnvilCost + 1 }
|
||||
|
||||
val player = event.view.player
|
||||
|
||||
inventory.repairCost = finalAnvilCost
|
||||
event.view.setProperty(REPAIR_COST, finalAnvilCost)
|
||||
player.openInventory.setProperty(REPAIR_COST, finalAnvilCost)
|
||||
|
||||
val player = event.view.player
|
||||
if(player is Player){
|
||||
if(player.gameMode != GameMode.CREATIVE ){
|
||||
val bypassToExpensive = (ConfigOptions.doReplaceTooExpensive) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue