From 0e940816e0de50610f24b1ec351c9cf01783cb48 Mon Sep 17 00:00:00 2001 From: Frank Baumann Date: Wed, 3 Oct 2012 20:42:04 +0200 Subject: [PATCH] Little changes in the new loot inventory system --- DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java | 3 +-- DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java b/DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java index ae24ecdc..27fccce8 100644 --- a/DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java +++ b/DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java @@ -4,7 +4,6 @@ import java.util.concurrent.CopyOnWriteArrayList; import org.bukkit.Bukkit; import org.bukkit.entity.Player; -import org.bukkit.event.inventory.InventoryType; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.ItemStack; @@ -21,7 +20,7 @@ public class DLootInventory { public DLootInventory(Player player, ItemStack[] istacks){ LootInventorys.add(this); - this.inventory = Bukkit.createInventory(player, InventoryType.CHEST); + this.inventory = Bukkit.createInventory(player, 54); for(ItemStack istack:istacks){ if(istack!=null){ this.inventory.addItem(istack); diff --git a/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java b/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java index 68a7b68e..30177e37 100644 --- a/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java +++ b/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java @@ -335,7 +335,6 @@ public class PlayerListener implements Listener{ @EventHandler public void onInventoryClose(InventoryCloseEvent event){ - p.log("CLOSE!!!"); Player player =(Player) event.getPlayer(); for(DLootInventory inventory:DLootInventory.LootInventorys){ if(event.getView()==inventory.inventoryView){