mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fixed Role not returning
This commit is contained in:
@@ -303,7 +303,7 @@ function Role.debug_output(role,player)
|
|||||||
end
|
end
|
||||||
if role then
|
if role then
|
||||||
local role = Role.get(mixed)
|
local role = Role.get(mixed)
|
||||||
if not type_error(roles,'table','Invalid argument #1 to Role.print, role is invalid.') then return end
|
if not type_error(role,'table','Invalid argument #1 to Role.print, role is invalid.') then return end
|
||||||
_output(role)
|
_output(role)
|
||||||
else for index,_role in pairs(Role.roles) do _output(_role) end end
|
else for index,_role in pairs(Role.roles) do _output(_role) end end
|
||||||
end
|
end
|
||||||
@@ -520,4 +520,4 @@ end)
|
|||||||
|
|
||||||
-- Module Return
|
-- Module Return
|
||||||
-- calling will attempt to define a new role
|
-- calling will attempt to define a new role
|
||||||
return setmetatable(Role,{__call=function(tbl,...) tbl.define(...) end})
|
return setmetatable(Role,{__call=function(tbl,...) return tbl.define(...) end})
|
||||||
Reference in New Issue
Block a user