Skip to content

Commit a034d8b

Browse files
committed
use isFood check from Utils in ItemListSettingScreen
1 parent 12576f8 commit a034d8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/meteordevelopment/meteorclient/gui/screens/settings/ItemListSettingScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ private static ItemCategory getCategory(Item item) {
350350
try {
351351
if (item.components().has(DataComponents.EQUIPPABLE)) return ItemCategory.ARMOR;
352352
if (item.components().has(DataComponents.TOOL)) return ItemCategory.TOOLS;
353-
if (item.components().has(DataComponents.FOOD)) return ItemCategory.FOOD;
353+
if (Utils.isFood(item)) return ItemCategory.FOOD;
354354
if (item.components().has(DataComponents.POTION_CONTENTS)) return ItemCategory.POTIONS;
355355
if (item.components().has(DataComponents.ENTITY_DATA)) return ItemCategory.SPAWN_EGGS;
356356
} catch (Exception ignored) {}

0 commit comments

Comments
 (0)