mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 20:41:11 +01:00
Mobs: Drop cooked item if died in fire
This commit is contained in:
parent
3772dd51cc
commit
fb9d0f7a7c
1 changed files with 2 additions and 2 deletions
|
@ -589,8 +589,8 @@ local check_for_death = function(self, cause, cmi_cause)
|
|||
return false
|
||||
end
|
||||
|
||||
-- dropped cooked item if mob died in lava
|
||||
if cause == "lava" then
|
||||
-- dropped cooked item if mob died in fire or lava
|
||||
if cause == "lava" or cause == "fire" then
|
||||
item_drop(self, true)
|
||||
else
|
||||
item_drop(self, nil)
|
||||
|
|
Loading…
Reference in a new issue