Skip to content

Commit

Permalink
fix for mode check.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 14, 2024
1 parent 784b197 commit c27851c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = 'e41aa12 2024-01-14' }
return { commitId = '784b197 2024-01-14' }
3 changes: 2 additions & 1 deletion modules/class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ end
---@param mode string
---@return boolean
function Module:IsModeActive(mode)
if self.ClassConfig.Modes[mode] == nil then
local modeSet = Set.new(self.ClassConfig.Modes)
if not modeSet:contains(mode) then
RGMercsLogger.log_error("\arIsModeActive(%s) ==> Invalid Mode Type!", mode)
return false
end
Expand Down

0 comments on commit c27851c

Please sign in to comment.