Working on Init Bugs

This commit is contained in:
Cooldude2606
2018-10-12 19:23:02 +01:00
parent 0b6009e92e
commit ba3a01f9d6
7 changed files with 12 additions and 8 deletions

View File

@@ -14,6 +14,7 @@
],
"dependencies": {
"FactorioStdLib": "^0.8.0",
"ExpGamingCore.Server": "?^4.0.0",
"ExpGamingLib": "^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"

View File

@@ -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