Mobs: Drop cooked item if died in fire
This commit is contained in:
parent
3772dd51cc
commit
fb9d0f7a7c
|
@ -589,8 +589,8 @@ local check_for_death = function(self, cause, cmi_cause)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- dropped cooked item if mob died in lava
|
-- dropped cooked item if mob died in fire or lava
|
||||||
if cause == "lava" then
|
if cause == "lava" or cause == "fire" then
|
||||||
item_drop(self, true)
|
item_drop(self, true)
|
||||||
else
|
else
|
||||||
item_drop(self, nil)
|
item_drop(self, nil)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user