mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-10-31 23:59:33 +01:00
Forgot return
This commit is contained in:
parent
d76e70b1f7
commit
41b22e8951
@ -35,7 +35,7 @@ public class HandItemCache extends BukkitRunnable {
|
||||
}
|
||||
|
||||
public static Item convert(ItemStack itemInHand) {
|
||||
if (itemInHand == null) new Item((short) 0, (byte) 0, (short) 0, null);
|
||||
if (itemInHand == null) return new Item((short) 0, (byte) 0, (short) 0, null);
|
||||
return new Item((short) itemInHand.getTypeId(), (byte) itemInHand.getAmount(), itemInHand.getDurability(), null);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user