diff --git a/MobArena.jar b/MobArena.jar index 8c77cf9..368959f 100644 Binary files a/MobArena.jar and b/MobArena.jar differ diff --git a/src/com/garbagemule/MobArena/util/inventory/InventoryManager.java b/src/com/garbagemule/MobArena/util/inventory/InventoryManager.java index f364d9a..6356e9a 100644 --- a/src/com/garbagemule/MobArena/util/inventory/InventoryManager.java +++ b/src/com/garbagemule/MobArena/util/inventory/InventoryManager.java @@ -5,6 +5,8 @@ import java.util.HashMap; import java.util.Map; import org.bukkit.entity.Player; +import org.bukkit.inventory.Inventory; +import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.PlayerInventory; @@ -86,6 +88,14 @@ public class InventoryManager inv.setChestplate(null); inv.setLeggings(null); inv.setBoots(null); + InventoryView view = p.getOpenInventory(); + if (view != null) { + view.setCursor(null); + Inventory i = view.getTopInventory(); + if (i != null) { + i.clear(); + } + } } private boolean saveToFile(Player p) {