From 3830171347e5cbcfc3d0f07207065872d1b99237 Mon Sep 17 00:00:00 2001 From: GuyLiner Date: Thu, 16 Feb 2023 16:39:59 -0500 Subject: [PATCH] Adjusted mob_light_lvl for changed return value --- mods/ENTITIES/mcl_mobs/init.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/init.lua b/mods/ENTITIES/mcl_mobs/init.lua index 0c7f29b35..e240cb924 100644 --- a/mods/ENTITIES/mcl_mobs/init.lua +++ b/mods/ENTITIES/mcl_mobs/init.lua @@ -504,8 +504,7 @@ function mcl_mobs.register_egg(mob, desc, background_color, overlay_color, addeg local name = placer:get_player_name() local privs = minetest.get_player_privs(name) local dim = mcl_worlds.pos_to_dimension(placer:get_pos()) - local mob_light_lvl = mcl_mobs:mob_light_lvl(itemstack:get_name(),dim) - + local mob_light_lvl = {mcl_mobs:mob_light_lvl(itemstack:get_name(),dim)} if under.name == "mcl_mobspawners:spawner" then if minetest.is_protected(pointed_thing.under, name) then minetest.record_protection_violation(pointed_thing.under, name) @@ -515,8 +514,7 @@ function mcl_mobs.register_egg(mob, desc, background_color, overlay_color, addeg minetest.chat_send_player(name, S("You need the “maphack” privilege to change the mob spawner.")) return itemstack end - mcl_mobs:mob_light_lvl(itemstack:get_name(),dim) - mcl_mobspawners.setup_spawner(pointed_thing.under, itemstack:get_name(), mob_light_lvl.min_light, mob_light_lvl.max_light) + mcl_mobspawners.setup_spawner(pointed_thing.under, itemstack:get_name(), mob_light_lvl[1], mob_light_lvl[2]) if not minetest.is_creative_enabled(name) then itemstack:take_item() end