From 29328379510f60dc4e88816cc78551de87d50d51 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Fri, 1 Jan 2021 19:52:34 +0100 Subject: [PATCH] Fix mobs always dropping cooked loot --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index dd6191da2f..3452b83c39 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -785,7 +785,7 @@ local check_for_death = function(self, cause, cmi_cause) wielditem = puncher:get_wielded_item() end end - local cooked = mcl_burning.is_burning(self.object) or mcl_enchanting.get_enchantment(wielditem, "fire_aspect") + local cooked = mcl_burning.is_burning(self.object) or mcl_enchanting.has_enchantment(wielditem, "fire_aspect") local looting = mcl_enchanting.get_enchantment(wielditem, "looting") item_drop(self, cooked, looting) end