Corrige crash de la commande /factions version

This commit is contained in:
Sys Quatre 2019-12-30 00:23:37 +01:00
parent e5fdd2bdee
commit 3287b6793f
2 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,7 @@ function factions_chat.cmdhandler(playername,parameter)
--show factions mod version
if cmd == "version" then
minetest.chat_send_player(playername, "Factions: version " .. factions_version , false)
minetest.chat_send_player(playername, "Factions: version " .. factions.version , false)
return
end

View File

@ -23,6 +23,7 @@ factions_modpath = minetest.get_modpath("factions")
dofile (factions_modpath .. "/factions.lua")
dofile (factions_modpath .. "/chatcommands.lua")
factions.version = factions_version
factions.load()
factions_chat.init()