Increased priority of talisman place listener to make sure its cancelled
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.willfp.talismans.talismans.util;
|
||||
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.block.BlockPlaceEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -10,7 +11,7 @@ public class BlockPlaceListener implements Listener {
|
||||
* Called on block place.
|
||||
* @param event The event to listen for.
|
||||
*/
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onAttemptTalismanPlace(@NotNull final BlockPlaceEvent event) {
|
||||
if (TalismanChecks.getTalismanOnItem(event.getItemInHand()) != null) {
|
||||
event.setCancelled(true);
|
||||
|
||||
Reference in New Issue
Block a user