Remove messages for feeding/taming animals
This commit is contained in:
parent
8d1ffbe2cd
commit
461807b0dc
|
@ -3074,8 +3074,6 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
||||||
if self.tamed == false
|
if self.tamed == false
|
||||||
and force_take == false then
|
and force_take == false then
|
||||||
|
|
||||||
minetest.chat_send_player(name, S("Not tamed!"))
|
|
||||||
|
|
||||||
return true -- false
|
return true -- false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3153,7 +3151,6 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(name, S("Missed!"))
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3172,7 +3169,6 @@ function mobs:protect(self, clicker)
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.tamed == false then
|
if self.tamed == false then
|
||||||
minetest.chat_send_player(name, S("Not tamed!"))
|
|
||||||
return true -- false
|
return true -- false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3223,10 +3219,6 @@ function mobs:feed_tame(self, clicker, feed_count, breed, tame)
|
||||||
|
|
||||||
if self.htimer < 1 then
|
if self.htimer < 1 then
|
||||||
|
|
||||||
minetest.chat_send_player(clicker:get_player_name(),
|
|
||||||
S("@1 at full health (@2)",
|
|
||||||
self.name:split(":")[2], tostring(self.health)))
|
|
||||||
|
|
||||||
self.htimer = 5
|
self.htimer = 5
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -3257,12 +3249,6 @@ function mobs:feed_tame(self, clicker, feed_count, breed, tame)
|
||||||
|
|
||||||
if tame then
|
if tame then
|
||||||
|
|
||||||
if self.tamed == false then
|
|
||||||
minetest.chat_send_player(clicker:get_player_name(),
|
|
||||||
S("@1 has been tamed!",
|
|
||||||
self.name:split(":")[2]))
|
|
||||||
end
|
|
||||||
|
|
||||||
self.tamed = true
|
self.tamed = true
|
||||||
|
|
||||||
if not self.owner or self.owner == "" then
|
if not self.owner or self.owner == "" then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user