print warning if player_api is missing
This commit is contained in:
parent
e0216e418e
commit
ca1ddae449
@ -265,5 +265,13 @@ npc_talk.enable_talk_to_talking_npc = function()
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
if(not(minetest.get_modpath("player_api"))) then
|
||||
minetest.log("warn", "[npc_talk] Optional dependency \"player_api\" not found. "..
|
||||
"NPC npc_talk:talking_npc will not work if there is no other mod "..
|
||||
"providing character.b3d and character.png.")
|
||||
end
|
||||
|
||||
|
||||
-- make sure the NPC can be configured regarding its skin
|
||||
yl_speak_up.register_on_reload(npc_talk.enable_talk_to_talking_npc, "npc_talk.enable_talk_to_talking_npc()")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user