mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Merge branch 'explosivegaming:main' into aperx
This commit is contained in:
@@ -14,7 +14,9 @@ UsesAlt:set_metadata{
|
||||
--- When your data loads apply alt view if you have it enabled
|
||||
UsesAlt:on_load(function(player_name, uses_alt)
|
||||
local player = game.players[player_name]
|
||||
player.game_view_settings.show_entity_info = uses_alt or false
|
||||
if uses_alt ~= nil then
|
||||
player.game_view_settings.show_entity_info = uses_alt
|
||||
end
|
||||
end)
|
||||
|
||||
--- When alt view is toggled update this
|
||||
|
||||
@@ -30,7 +30,7 @@ types.lower_role =
|
||||
--- @cast result any TODO role is not a defined type
|
||||
|
||||
local player_highest = highest_role(player)
|
||||
if player_highest.index >= result.index then
|
||||
if player_highest.index < result.index then
|
||||
return invalid{ "exp-commands-parse_role.lower-role" }
|
||||
else
|
||||
return valid(result)
|
||||
|
||||
Reference in New Issue
Block a user