Fix priority for dupe fix

This commit is contained in:
Shaun Bennett 2015-09-28 20:44:57 -04:00
parent 8a9cc9ff14
commit 437e62c7db

View File

@ -14,8 +14,8 @@ public class FoodDupeFix extends MiniPlugin
super("Food Dupe Fix", plugin); super("Food Dupe Fix", plugin);
} }
// Use Highest priority so event.getItem isn't changed // Use Lowest priority so we get called first event.getItem isn't changed
@EventHandler(priority = EventPriority.HIGHEST) @EventHandler(priority = EventPriority.LOWEST)
public void fixFoodDupe(PlayerItemConsumeEvent event) public void fixFoodDupe(PlayerItemConsumeEvent event)
{ {
if (UtilItem.isFood(event.getItem())) if (UtilItem.isFood(event.getItem()))