0
0
Fork 0

Fixed the exclusive modifiers not being exclusive

This commit is contained in:
the-real-herowl 2023-12-12 01:45:07 +01:00 committed by the-real-herowl
parent 98b6ead591
commit 5afd0aa255
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ function mcl_fovapi.apply_modifier(player, modifier_name)
mcl_fovapi.applied_modifiers[player] = {}
end
for k, _ in pairs(mcl_fovapi.applied_modifiers[player]) do
if mcl_fovapi.registered_modifiers[k].exclusive == true then return end
end
local modifier = mcl_fovapi.registered_modifiers[modifier_name]
if modifier.on_start ~= nil then
modifier.on_start(player)