mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-02 00:10:21 +02:00
placing stackable mob egg while holding sneak removes tamed status
This commit is contained in:
3
api.lua
3
api.lua
@ -3163,7 +3163,8 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
|
||||
return
|
||||
end
|
||||
|
||||
if ent.type ~= "monster" then
|
||||
if ent.type ~= "monster"
|
||||
and not placer:get_player_control().sneak then
|
||||
-- set owner and tame if not monster
|
||||
ent.owner = placer:get_player_name()
|
||||
ent.tamed = true
|
||||
|
Reference in New Issue
Block a user