1
0
Fork 0

Fix mobs always dropping cooked loot

This commit is contained in:
Lizzy Fleckenstein 2021-01-01 19:52:34 +01:00
parent 92bf864807
commit 2932837951
1 changed files with 1 additions and 1 deletions

View File

@ -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