Archiviert
13
0

Fixed error in CraftInventory.setContents().

Dieser Commit ist enthalten in:
sk89q 2011-01-16 13:29:30 -08:00
Ursprung d048167d16
Commit 74d746b6c5

Datei anzeigen

@ -50,7 +50,7 @@ public class CraftInventory implements org.bukkit.inventory.Inventory {
for (int i = 0; i < items.length; i++ ) { for (int i = 0; i < items.length; i++ ) {
ItemStack item = items[i]; ItemStack item = items[i];
if (item == null) { if (item == null || item.getTypeId() <= 0) {
mcItems[i] = null; mcItems[i] = null;
} else { } else {
mcItems[i] = new net.minecraft.server.ItemStack( item.getTypeId(), item.getAmount(), item.getDamage()); mcItems[i] = new net.minecraft.server.ItemStack( item.getTypeId(), item.getAmount(), item.getDamage());