From 6df3b9008a50922987c5100b17b400f9458d4a65 Mon Sep 17 00:00:00 2001 From: snowleo Date: Thu, 1 Mar 2012 23:23:23 +0100 Subject: [PATCH] update inventory --- Essentials/src/com/earth2me/essentials/signs/SignFree.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Essentials/src/com/earth2me/essentials/signs/SignFree.java b/Essentials/src/com/earth2me/essentials/signs/SignFree.java index 7ab771833..f5f32c38c 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignFree.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignFree.java @@ -37,6 +37,7 @@ public class SignFree extends EssentialsSign item.setAmount(item.getType().getMaxStackSize()); InventoryWorkaround.addItem(player.getInventory(), true, item); player.sendMessage("Item added to your inventory."); + player.updateInventory(); //TODO: wait for a fix in bukkit //Problem: Items can be duplicated //Inventory i = ess.getServer().createInventory(player, InventoryType.CHEST);