mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +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) {
|
if(event.result != null) {
|
||||||
CustomAnvil.log("Detected pre anvil item extract bypass.")
|
CustomAnvil.log("Detected pre anvil item extract bypass.")
|
||||||
|
XpSetterUtil.setAnvilInvXp(event.inventory, event.view, event.inventory.repairCost)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
splitEvent.onDisenchantmentEvent(event)
|
splitEvent.onDisenchantmentEvent(event)
|
||||||
if(event.result != null) {
|
if(event.result != null) {
|
||||||
CustomAnvil.log("Detected pre anvil split enchant bypass.")
|
CustomAnvil.log("Detected pre anvil split enchant bypass.")
|
||||||
|
XpSetterUtil.setAnvilInvXp(event.inventory, event.view, event.inventory.repairCost)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue