Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-29 17:40:09 +01:00
getContents now returns null for items whose underlying item is null
Dieser Commit ist enthalten in:
Ursprung
8385b1436e
Commit
92e3957a0e
@ -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;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren