Compatibility with most plugin using wesjd anvil gui

This commit is contained in:
alexcrea 2024-09-22 20:12:56 +02:00
parent 74a211bc88
commit a915d5ad80
15 changed files with 267 additions and 1 deletions

View file

@ -56,7 +56,7 @@ class AnvilEventListener(private val packetManager: PacketManager) : Listener {
/**
* Event handler logic for when an anvil contains items to be combined
*/
@EventHandler(priority = HIGHEST)
@EventHandler(priority = HIGHEST, ignoreCancelled = true)
fun anvilCombineCheck(event: PrepareAnvilEvent) {
// Test if the event should bypass custom anvil.
if(DependencyManager.tryEventPreAnvilBypass(event)) return