Temporarily disable spawn eggs from setting owner
parent
5062d56a5d
commit
964ce9ccf7
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue