1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-07 20:40:23 +02:00

fix fear_height defaults

This commit is contained in:
tenplus1 2025-05-17 07:43:26 +01:00
parent 0d6b794fa0
commit 2cf43ffc4e

View File

@ -18,7 +18,7 @@ end
-- global table -- global table
mobs = { mobs = {
mod = "redo", version = "20250516", mod = "redo", version = "20250517",
spawning_mobs = {}, translate = S, spawning_mobs = {}, translate = S,
node_snow = has(core.registered_aliases["mapgen_snow"]) node_snow = has(core.registered_aliases["mapgen_snow"])
or has("mcl_core:snow") or has("default:snow") or "air", or has("mcl_core:snow") or has("default:snow") or "air",
@ -162,7 +162,7 @@ mobs.mob_class = {
reach = 3, reach = 3,
docile_by_day = false, docile_by_day = false,
time_of_day = 0.5, time_of_day = 0.5,
fear_height = 2, -- fear_height = 0,
runaway_timer = 0, runaway_timer = 0,
immune_to = {}, immune_to = {},
explosion_timer = 3, explosion_timer = 3,
@ -3288,7 +3288,7 @@ function mobs:register_mob(name, def)
texture_mods = def.texture_mods or "", texture_mods = def.texture_mods or "",
child_texture = def.child_texture, child_texture = def.child_texture,
docile_by_day = def.docile_by_day, docile_by_day = def.docile_by_day,
fear_height = def.fear_height, fear_height = def.fear_height or def.fly and 0 or 2,
runaway = def.runaway, runaway = def.runaway,
pathfinding = def.pathfinding, pathfinding = def.pathfinding,
immune_to = def.immune_to, immune_to = def.immune_to,
@ -3343,7 +3343,7 @@ function mobs:register_mob(name, def)
}, mob_class_meta)) }, mob_class_meta))
local self = core.registered_entities[name] local self = core.registered_entities[name] ; print("--- FH", self.fear_height)
mobs.compatibility_check(self) -- older setting check for compatibility mobs.compatibility_check(self) -- older setting check for compatibility
end end