mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-10 01:40:21 +01:00
fix nil var
This commit is contained in:
parent
812f18430c
commit
7f1ad09870
6
api.lua
6
api.lua
@ -11,7 +11,7 @@ local use_mc2 = minetest.get_modpath("mcl_core")
|
|||||||
-- Global
|
-- Global
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20231007",
|
version = "20231008",
|
||||||
translate = S,
|
translate = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
node_snow = minetest.registered_aliases["mapgen_snow"]
|
node_snow = minetest.registered_aliases["mapgen_snow"]
|
||||||
@ -1779,7 +1779,7 @@ function mob_class:smart_mobs(s, p, dist, dtime)
|
|||||||
jumpheight = min(ceil(
|
jumpheight = min(ceil(
|
||||||
self.jump_height / pathfinding_max_jump), pathfinding_max_jump)
|
self.jump_height / pathfinding_max_jump), pathfinding_max_jump)
|
||||||
|
|
||||||
elseif self.stepheight > 0.5 then
|
elseif prop.stepheight > 0.5 then
|
||||||
jumpheight = 1
|
jumpheight = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -3612,7 +3612,7 @@ minetest.register_entity(":" .. name, setmetatable({
|
|||||||
mesh = def.mesh,
|
mesh = def.mesh,
|
||||||
textures = "",
|
textures = "",
|
||||||
makes_footstep_sound = def.makes_footstep_sound,
|
makes_footstep_sound = def.makes_footstep_sound,
|
||||||
stepheight = def.stepheight,
|
stepheight = def.stepheight or 1.1,
|
||||||
glow = def.glow,
|
glow = def.glow,
|
||||||
damage_texture_modifier = def.damage_texture_modifier or "^[colorize:#c9900070",
|
damage_texture_modifier = def.damage_texture_modifier or "^[colorize:#c9900070",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user