mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
Fix enchantments avoiding custom anvil rules when an ExcellentEnchants enchantment is present. fix #36
Also version up
This commit is contained in:
parent
1066508233
commit
c0af35fa0b
5 changed files with 25 additions and 11 deletions
|
|
@ -5,6 +5,7 @@ import org.bukkit.Bukkit
|
|||
import org.bukkit.event.inventory.InventoryClickEvent
|
||||
import org.bukkit.event.inventory.PrepareAnvilEvent
|
||||
import org.bukkit.inventory.AnvilInventory
|
||||
import org.bukkit.inventory.ItemStack
|
||||
import xyz.alexcrea.cuanvil.config.ConfigHolder
|
||||
import xyz.alexcrea.cuanvil.dependency.gui.ExternGuiTester
|
||||
import xyz.alexcrea.cuanvil.dependency.gui.GuiTesterSelector
|
||||
|
|
@ -105,6 +106,10 @@ object DependencyManager {
|
|||
return bypass
|
||||
}
|
||||
|
||||
fun treatAnvilResult(event: PrepareAnvilEvent, result: ItemStack) {
|
||||
excellentEnchantsCompatibility?.treatAnvilResult(event, result)
|
||||
}
|
||||
|
||||
fun tryClickAnvilResultBypass(event: InventoryClickEvent, inventory: AnvilInventory): Boolean {
|
||||
var bypass = false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue