From 1d622b653d9717a884d8b75df34d5f064a78deee Mon Sep 17 00:00:00 2001 From: ShadowRanger Date: Thu, 5 May 2016 11:32:01 +1000 Subject: [PATCH] Implement Jikoo's data duplication glitch fix --- .../com/lishid/openinv/listeners/OpenInvPlayerListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/lishid/openinv/listeners/OpenInvPlayerListener.java b/src/main/java/com/lishid/openinv/listeners/OpenInvPlayerListener.java index df7d2b7..22949a9 100644 --- a/src/main/java/com/lishid/openinv/listeners/OpenInvPlayerListener.java +++ b/src/main/java/com/lishid/openinv/listeners/OpenInvPlayerListener.java @@ -66,9 +66,9 @@ public class OpenInvPlayerListener implements Listener { player.updateInventory(); } - SpecialEnderChest chest = plugin.getPlayerEnderChest(player, false); - if (chest != null) { - chest.playerOnline(player); + SpecialEnderChest enderChest = plugin.getPlayerEnderChest(player, false); + if (enderChest != null) { + enderChest.playerOnline(player); } } }.runTask(plugin);