mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-13 19:11:31 +01:00
return null if the item is null :)
This commit is contained in:
parent
d8ce66ce29
commit
ca6638c740
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user