From bcf7125f9da75895e3fc284c0489a29852c7110a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 8 Feb 2019 17:55:14 +0100 Subject: [PATCH] Fix mob items not working without maphack priv --- mods/ENTITIES/mcl_mobs/api.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 3f1eeeb0b..ebe977e94 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3576,11 +3576,11 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative) local name = placer:get_player_name() local privs = minetest.get_player_privs(name) - if not privs.maphack then - minetest.chat_send_player(name, "You need the “maphack” privilege to change the mob spawner.") - return itemstack - end if mod_mobspawners and under.name == "mcl_mobspawners:spawner" then + if not privs.maphack then + minetest.chat_send_player(name, "You need the “maphack” privilege to change the mob spawner.") + return itemstack + end mcl_mobspawners.setup_spawner(pointed_thing.under, itemstack:get_name()) if not minetest.settings:get_bool("creative_mode") then itemstack:take_item()