From 72b55073904055334f2fb0c5fde043e61c35103f Mon Sep 17 00:00:00 2001 From: xGamingDudex Date: Wed, 27 Jul 2016 12:29:07 +0200 Subject: [PATCH] Fixed PC-120 --- .../src/mineplex/core/inventory/InventoryManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/inventory/InventoryManager.java b/Plugins/Mineplex.Core/src/mineplex/core/inventory/InventoryManager.java index d3a3c4107..c1e8eef3a 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/inventory/InventoryManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/inventory/InventoryManager.java @@ -266,7 +266,7 @@ public class InventoryManager extends MiniDbClientPlugin @EventHandler public void onInventoryClick(final InventoryClickEvent event) { - if (event.getView().getTopInventory().getType() != InventoryType.ENCHANTING) + if (event.getClickedInventory().getType() != InventoryType.ENCHANTING) { return; }