13
0
geforkt von Mirrors/Paper

getContents now returns null for items whose underlying item is null

By: Tahg <tahgtahv@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-04-06 12:45:03 -04:00
Ursprung ce4ef77ead
Commit 39b417df5d

Datei anzeigen

@ -35,7 +35,7 @@ public class CraftInventory implements org.bukkit.inventory.Inventory {
net.minecraft.server.ItemStack[] mcItems = getInventory().getContents();
for (int i = 0; i < mcItems.length; i++ ) {
items[i] = new CraftItemStack(mcItems[i]);
items[i] = mcItems[i] == null ? null : new CraftItemStack(mcItems[i]);
}
return items;