Updated Json File To Remove module atibute

This commit is contained in:
Cooldude2606
2018-06-23 10:07:26 +01:00
parent f3d6d20ed5
commit 593d484f37
18 changed files with 22 additions and 33 deletions

View File

@@ -27,7 +27,8 @@ commands.add_command('interface',{'Server.interface-description'}, {
env.position = game.player.position
env.entity = game.player.selected
env.tile = game.player.surface.get_tile(game.player.position)
if Ranking and Ranking.get_rank then env.rank = Ranking.get_rank(game.player) end
-- this works if loaded modules is not present as Mamager will always have the modules
if Manager['ExpGamingCore.Ranking'] then env.rank = Manager['ExpGamingCore.Ranking'].get_rank(game.player) end
end
-- runs the function
local success, err = Server.interface(callback,false,env)