3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-08 22:02:50 +02:00

return null if the item is null :)

Dieser Commit ist enthalten in:
Myles 2016-03-06 21:40:15 +00:00
Ursprung d8ce66ce29
Commit ca6638c740

Datei anzeigen

@ -178,6 +178,7 @@ public class ItemSlotRewriter {
public CompoundTag tag;
public static ItemStack fromBukkit(org.bukkit.inventory.ItemStack stack) {
if(stack == null) return null;
ItemStack item = new ItemStack();
item.id = (short) stack.getTypeId();
item.amount = (byte) stack.getAmount();