mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Temporarily disable spawn eggs from setting owner
This commit is contained in:
parent
5062d56a5d
commit
964ce9ccf7
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue