1
0
mirror of https://github.com/MinetestForFun/quests.git synced 2025-07-07 10:50:24 +02:00

A bit of clean up. Moved mod integration lua files to their own folder with a single file designed to check if supported mods are present and load the appropriate local file to setup for it.

This commit is contained in:
DomtronVox
2020-05-03 19:15:16 -04:00
parent 765e34bfe5
commit 4b9565e8b6
6 changed files with 27 additions and 19 deletions

View File

@ -0,0 +1,9 @@
function quests.show_message(t, playername, text)
if (quests.hud[playername].central_message_enabled) then
local player = minetest.get_player_by_name(playername)
cmsg.push_message_player(player, text, quests.colors[t])
minetest.sound_play("quests_" .. t, {to_player = playername})
end
end