Update sync upstream 'master' of https://notabug.org/TenPlus1/mobs_redo into main
* Fix error api: https://notabug.org/TenPlus1/nssm/issues/18
This commit is contained in:
commit
d3066e2c4b
6
api.lua
6
api.lua
@ -27,7 +27,7 @@ local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20230607",
|
||||
version = "20230613",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||
}
|
||||
@ -1206,7 +1206,7 @@ function mob_class:do_env_damage()
|
||||
end
|
||||
|
||||
-- damage_per_second node check (not fire and lava)
|
||||
elseif nodef.damage_per_second ~= 0
|
||||
elseif nodef.damage_per_second and nodef.damage_per_second ~= 0
|
||||
and nodef.groups.lava == nil and nodef.groups.fire == nil then
|
||||
|
||||
self.health = self.health - nodef.damage_per_second
|
||||
@ -1457,7 +1457,7 @@ function mob_class:breed()
|
||||
local pos = self.object:get_pos() ; if not pos then return end
|
||||
local ent = self.object:get_luaentity()
|
||||
|
||||
pos.y = pos.y + (ent.collisionbox[2] * -1) - 0.4
|
||||
pos.y = pos.y + (ent.collisionbox[2] * -1)
|
||||
|
||||
self.object:set_pos(pos)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user