1
0
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:
TenPlus1 2021-09-05 08:16:40 +01:00
parent 4c80a55c04
commit a8ca00dc56

View File

@ -8,7 +8,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20210816",
version = "20210905",
intllib = S,
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 type(self.follow) == "string" then
self.follow = {self.follow}
end
minetest.chat_send_player(clicker:get_player_name(),
S("@1 follows:\n- @2",
self.name:split(":")[2],