mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2026-01-06 15:51:50 +00:00
feat: destroy loose items cover gamemode switch
This commit is contained in:
@@ -143,6 +143,7 @@ public class InventoryUtils {
|
||||
}
|
||||
|
||||
public static boolean isCosmeticItem(ItemStack itemStack) {
|
||||
if (itemStack == null) return false;
|
||||
itemStack = itemStack.clone();
|
||||
if (!itemStack.hasItemMeta()) return false;
|
||||
return itemStack.getItemMeta().getPersistentDataContainer().has(getCosmeticKey(), PersistentDataType.STRING);
|
||||
|
||||
Reference in New Issue
Block a user