mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
Override Disenchantment xp.
This allows to use Custom Anvil xp settings !
This commit is contained in:
parent
804c11a7f4
commit
aa860bdbf0
1 changed files with 2 additions and 0 deletions
|
|
@ -80,12 +80,14 @@ class DisenchantmentDependency {
|
|||
|
||||
if(event.result != null) {
|
||||
CustomAnvil.log("Detected pre anvil item extract bypass.")
|
||||
XpSetterUtil.setAnvilInvXp(event.inventory, event.view, event.inventory.repairCost)
|
||||
return true
|
||||
}
|
||||
|
||||
splitEvent.onDisenchantmentEvent(event)
|
||||
if(event.result != null) {
|
||||
CustomAnvil.log("Detected pre anvil split enchant bypass.")
|
||||
XpSetterUtil.setAnvilInvXp(event.inventory, event.view, event.inventory.repairCost)
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue