mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-23 09:10:22 +01:00
fix self.follow list
This commit is contained in:
parent
4c80a55c04
commit
a8ca00dc56
6
api.lua
6
api.lua
@ -8,7 +8,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20210816",
|
version = "20210905",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||||
}
|
}
|
||||||
@ -4771,6 +4771,10 @@ function mobs:feed_tame(self, clicker, feed_count, breed, tame)
|
|||||||
|
|
||||||
if clicker:get_player_control().sneak then
|
if clicker:get_player_control().sneak then
|
||||||
|
|
||||||
|
if type(self.follow) == "string" then
|
||||||
|
self.follow = {self.follow}
|
||||||
|
end
|
||||||
|
|
||||||
minetest.chat_send_player(clicker:get_player_name(),
|
minetest.chat_send_player(clicker:get_player_name(),
|
||||||
S("@1 follows:\n- @2",
|
S("@1 follows:\n- @2",
|
||||||
self.name:split(":")[2],
|
self.name:split(":")[2],
|
||||||
|
Loading…
Reference in New Issue
Block a user