Skip to content

Commit

Permalink
refactor(VEM): get priority automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
IllustrisJack committed Jan 13, 2022
1 parent 5842c1b commit a6b8344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/Client/__init__.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ end
---@param p_Class string|nil
---@param p_Property string|nil
---@param p_Value any|nil
function VEManagerClient:SetSingleValue(p_ID, p_Priority, p_Class, p_Property, p_Value)
function VEManagerClient:SetSingleValue(p_ID, p_Class, p_Property, p_Value)
self:CheckPresetID(p_ID)

local s_States = VisualEnvironmentManager:GetStates()
local s_FixedPriority = 10000000 + p_Priority
local s_FixedPriority = 10000000 + self.m_Presets[p_ID].priority

for _, l_State in pairs(s_States) do
if l_State.priority == s_FixedPriority then
Expand Down

0 comments on commit a6b8344

Please sign in to comment.