From 8c9e196a53b8efe6c7e62a5db7989f7d883a1592 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 25 May 2017 03:09:02 +0200 Subject: [PATCH] Fix mob spawner doll re-loading --- mods/ITEMS/mcl_monster_spawner/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_monster_spawner/init.lua b/mods/ITEMS/mcl_monster_spawner/init.lua index c39fbe30..e71ed926 100644 --- a/mods/ITEMS/mcl_monster_spawner/init.lua +++ b/mods/ITEMS/mcl_monster_spawner/init.lua @@ -26,7 +26,6 @@ end local function set_doll_properties(doll, mob) local mobinfo = minetest.registered_entities[mob] local prop = { - _mob = mob, mesh = mobinfo.mesh, textures = get_mob_textures(mob), visual_size = { @@ -35,6 +34,7 @@ local function set_doll_properties(doll, mob) } } doll:set_properties(prop) + doll:get_luaentity()._mob = mob end --[[ Public function: Setup the spawner at pos. @@ -150,7 +150,7 @@ minetest.register_node("mcl_monster_spawner:spawner", { else minetest.chat_send_player(name, S("Mob Spawner settings failed!")) minetest.chat_send_player(name, - S("> name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] distance[1-20] y_offset[-10 to 10]")) + S("Syntax: name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] distance[1-20] y_offset[-10 to 10]")) end end, sounds = mcl_sounds.node_sound_metal_defaults(),