mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
Fix unit repair max price being off by 1
This commit is contained in:
parent
0d616d9fc7
commit
bd47f9d81b
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ class AnvilEventListener(private val packetManager: PacketManager) : Listener {
|
|||
repairCost = min(repairCost, ConfigOptions.maxAnvilCost)
|
||||
}
|
||||
|
||||
if ((inventory.maximumRepairCost < repairCost)
|
||||
if ((inventory.maximumRepairCost <= repairCost)
|
||||
|| (player.level < repairCost)
|
||||
) return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue