1
0
Fork 0

Temporarily disable spawn eggs from setting owner

This commit is contained in:
jordan4ibanez 2021-04-21 11:42:01 -04:00
parent 5062d56a5d
commit 964ce9ccf7
1 changed files with 2 additions and 0 deletions

View File

@ -631,11 +631,13 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
local ent = mob:get_luaentity() local ent = mob:get_luaentity()
-- don't set owner if monster or sneak pressed -- don't set owner if monster or sneak pressed
--[[
if ent.type ~= "monster" if ent.type ~= "monster"
and not placer:get_player_control().sneak then and not placer:get_player_control().sneak then
ent.owner = placer:get_player_name() ent.owner = placer:get_player_name()
ent.tamed = true ent.tamed = true
end end
]]--
-- set nametag -- set nametag
local nametag = itemstack:get_meta():get_string("name") local nametag = itemstack:get_meta():get_string("name")