Make priority for controllable LOWEST

This commit is contained in:
fullwall 2013-11-06 12:58:40 +08:00
parent 7246e4935e
commit b47a00d027
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.util.Vector;
@ -126,7 +127,7 @@ public class Controllable extends Trait implements Toggleable, CommandConfigurab
return true;
}
@EventHandler(ignoreCancelled = true)
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
public void onPlayerInteract(PlayerInteractEvent event) {
if (!npc.isSpawned() || !enabled)
return;