Override Disenchantment xp.

This allows to use Custom Anvil xp settings !
This commit is contained in:
alexcrea 2024-08-21 03:16:31 +02:00
parent 804c11a7f4
commit aa860bdbf0
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F

View file

@ -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
}