summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-02 18:56:18 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-02 18:56:18 +0100
commitcf3a9fd679a8369f24438179889b7fc3518cdd1c (patch)
tree5d63302f4526817b91c2f1b83ce411596067a2cb /api.lua
parenta9178b3cb2d84711f99319afcf417979a38ab2d9 (diff)
placing stackable mob egg while holding sneak removes tamed status
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 66cda91..c1249b3 100644
--- a/api.lua
+++ b/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