From 9cc2e3035ebece6c208f7e43d41ea3bddf17ebef Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Thu, 29 Nov 2018 20:09:59 -0500 Subject: [PATCH] Fix for incompatible method. --- .../com/songoda/ultimatestacker/events/InteractListeners.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/ultimatestacker/events/InteractListeners.java b/src/main/java/com/songoda/ultimatestacker/events/InteractListeners.java index 6c0930d..2f9695f 100644 --- a/src/main/java/com/songoda/ultimatestacker/events/InteractListeners.java +++ b/src/main/java/com/songoda/ultimatestacker/events/InteractListeners.java @@ -29,7 +29,7 @@ public class InteractListeners implements Listener { Player player = event.getPlayer(); Entity entity = event.getRightClicked(); - ItemStack item = player.getInventory().getItemInMainHand(); + ItemStack item = player.getInventory().getItemInHand(); if (item.getType() != Material.NAME_TAG || !instance.getEntityStackManager().isStacked(entity)) return;