mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 04:06:39 +09:00
Working on Init Bugs
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"FactorioStdLib": "^0.8.0",
|
||||
"ExpGamingCore.Server": "?^4.0.0",
|
||||
"ExpGamingLib": "^4.0.0"
|
||||
},
|
||||
"collection": "ExpGamingCore_4.0.0"
|
||||
|
||||
@@ -167,7 +167,7 @@ end
|
||||
function Role.get_highest(options)
|
||||
local player = Game.get_player(options)
|
||||
if player then options = Role.get(player) end
|
||||
if not type_error(options,'table','Invalid argument #1 to Role.highest, options is not a table of roles.') then return end
|
||||
if not type_error(options,'table','Invalid argument #1 to Role.get_highest, options is not a table of roles.') then return end
|
||||
local highest_index = -1
|
||||
local highest
|
||||
for _,role_name in pairs(options) do
|
||||
|
||||
Reference in New Issue
Block a user