From 964ce9ccf7101aef387bdd5ec2213ba4ac361a51 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Wed, 21 Apr 2021 11:42:01 -0400 Subject: [PATCH] Temporarily disable spawn eggs from setting owner --- mods/ENTITIES/mcl_mobs/api/api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api/api.lua b/mods/ENTITIES/mcl_mobs/api/api.lua index 37676f476..b5a7d5579 100644 --- a/mods/ENTITIES/mcl_mobs/api/api.lua +++ b/mods/ENTITIES/mcl_mobs/api/api.lua @@ -631,11 +631,13 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative) local ent = mob:get_luaentity() -- don't set owner if monster or sneak pressed + --[[ if ent.type ~= "monster" and not placer:get_player_control().sneak then ent.owner = placer:get_player_name() ent.tamed = true end + ]]-- -- set nametag local nametag = itemstack:get_meta():get_string("name")