diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-16 13:29:30 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-16 13:29:43 -0800 |
commit | 74d746b6c5d9cfeb50cbc62144a84fdcd164058e (patch) | |
tree | 302ed88c681c3a6701c6d060928f5a03be24eadd /src/main/java/org/bukkit | |
parent | d048167d16a404f1f0616d3b62797fce17311198 (diff) | |
download | craftbukkit-74d746b6c5d9cfeb50cbc62144a84fdcd164058e.tar craftbukkit-74d746b6c5d9cfeb50cbc62144a84fdcd164058e.tar.gz craftbukkit-74d746b6c5d9cfeb50cbc62144a84fdcd164058e.tar.lz craftbukkit-74d746b6c5d9cfeb50cbc62144a84fdcd164058e.tar.xz craftbukkit-74d746b6c5d9cfeb50cbc62144a84fdcd164058e.zip |
Fixed error in CraftInventory.setContents().
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index 8b7c06b1..26b09086 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java @@ -50,7 +50,7 @@ public class CraftInventory implements org.bukkit.inventory.Inventory { for (int i = 0; i < items.length; i++ ) { ItemStack item = items[i]; - if (item == null) { + if (item == null || item.getTypeId() <= 0) { mcItems[i] = null; } else { mcItems[i] = new net.minecraft.server.ItemStack( item.getTypeId(), item.getAmount(), item.getDamage()); |