Update inventory when closing ghost-dupe-able inventory, to remove ghost items.

This commit is contained in:
KHobbits 2013-05-26 18:21:19 +01:00
parent 6512a53a3f
commit 84874c9855

View File

@ -622,11 +622,13 @@ public class EssentialsPlayerListener implements Listener
{
final User user = ess.getUser(event.getPlayer());
user.setInvSee(false);
user.updateInventory();
}
else if (type == InventoryType.ENDER_CHEST)
{
final User user = ess.getUser(event.getPlayer());
user.setEnderSee(false);
user.updateInventory();
}
else if (type == InventoryType.WORKBENCH)
{
@ -635,6 +637,7 @@ public class EssentialsPlayerListener implements Listener
{
user.setRecipeSee(false);
event.getView().getTopInventory().clear();
user.updateInventory();
}
}
else if (type == InventoryType.CHEST && top.getSize() == 9)
@ -644,6 +647,7 @@ public class EssentialsPlayerListener implements Listener
{
final User user = ess.getUser(event.getPlayer());
user.setInvSee(false);
user.updateInventory();
}
}
}