Little changes in the new loot inventory system

This commit is contained in:
Frank Baumann 2012-10-03 20:42:04 +02:00
parent 15e9db2216
commit 0e940816e0
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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){