9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-26 10:29:06 +00:00

check if item is null before clone

This commit is contained in:
LoJoSho
2023-01-05 10:41:29 -06:00
parent 97bf39da9c
commit 6c1611d146

View File

@@ -81,6 +81,7 @@ public class Cosmetic {
@Nullable
public ItemStack getItem() {
if (item == null) return null;
return item.clone();
}