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:
@@ -81,6 +81,7 @@ public class Cosmetic {
|
||||
|
||||
@Nullable
|
||||
public ItemStack getItem() {
|
||||
if (item == null) return null;
|
||||
return item.clone();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user