forked from mtcontrib/factions
Corrige crash de la commande /factions version
This commit is contained in:
parent
e5fdd2bdee
commit
3287b6793f
@ -119,7 +119,7 @@ function factions_chat.cmdhandler(playername,parameter)
|
|||||||
|
|
||||||
--show factions mod version
|
--show factions mod version
|
||||||
if cmd == "version" then
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
1
init.lua
1
init.lua
@ -23,6 +23,7 @@ factions_modpath = minetest.get_modpath("factions")
|
|||||||
dofile (factions_modpath .. "/factions.lua")
|
dofile (factions_modpath .. "/factions.lua")
|
||||||
dofile (factions_modpath .. "/chatcommands.lua")
|
dofile (factions_modpath .. "/chatcommands.lua")
|
||||||
|
|
||||||
|
factions.version = factions_version
|
||||||
factions.load()
|
factions.load()
|
||||||
factions_chat.init()
|
factions_chat.init()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user