fix premature mob death and drops
This commit is contained in:
parent
ce7c4c1449
commit
8e6fa64f2d
4
api.lua
4
api.lua
@ -28,7 +28,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20220704",
|
version = "20220707",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||||
}
|
}
|
||||||
@ -3280,7 +3280,7 @@ function mob_class:mob_activate(staticdata, def, dtime)
|
|||||||
if type(self.armor) == "table" then
|
if type(self.armor) == "table" then
|
||||||
armor = table_copy(self.armor)
|
armor = table_copy(self.armor)
|
||||||
else
|
else
|
||||||
armor = {fleshy = self.armor} -- immortal = 1
|
armor = {fleshy = self.armor, immortal = 1}
|
||||||
end
|
end
|
||||||
self.object:set_armor_groups(armor)
|
self.object:set_armor_groups(armor)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user