mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 04:06:39 +09:00
Updated Json File To Remove module atibute
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
|
||||
local Game = require('FactorioStdLib.Game')
|
||||
local Color = require('FactorioStdLib.Color')
|
||||
-- this is optional and is hanndled by it being present
|
||||
local success, Ranking = pcall(require,'ExpGamingCore.Ranking')
|
||||
if not success then Ranking = nil end success = nil
|
||||
local Ranking -- this is optional and is hanndled by it being present, it is loaded on init
|
||||
|
||||
--- Used as an error constant for validation
|
||||
-- @field commands.error
|
||||
@@ -226,6 +224,10 @@ commands.add_command = function(name, description, inputs, callback)
|
||||
end)
|
||||
end
|
||||
|
||||
function commands:on_init()
|
||||
if loaded_modules['ExpGamingCore.Ranking'] then Ranking = require('ExpGamingCore.Ranking') end
|
||||
end
|
||||
|
||||
--[[
|
||||
command example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user