Skip to content

Commit

Permalink
Merge pull request #1623 from ManInMyVan/noslow
Browse files Browse the repository at this point in the history
Fix Grim thinking every item is edible on 1.15+
  • Loading branch information
AoElite committed Jul 29, 2024
2 parents 7dba3ff + e123ef2 commit 6e1cc9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public static void handleUseItem(GrimPlayer player, ItemStack item, InteractionH
}

// 1.14 and below players cannot eat in creative, exceptions are potions or milk
if ((player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_15) ||
(player.gamemode != GameMode.CREATIVE && material.hasAttribute(ItemTypes.ItemAttribute.EDIBLE)))
if (material.hasAttribute(ItemTypes.ItemAttribute.EDIBLE) &&
(player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_15) || player.gamemode != GameMode.CREATIVE)
|| material == ItemTypes.POTION || material == ItemTypes.MILK_BUCKET) {

// Pls have this mapped correctly retrooper
Expand Down

0 comments on commit 6e1cc9e

Please sign in to comment.