mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
Fixed the exclusive modifiers not being exclusive
This commit is contained in:
parent
98b6ead591
commit
5afd0aa255
1 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,10 @@ function mcl_fovapi.apply_modifier(player, modifier_name)
|
||||||
mcl_fovapi.applied_modifiers[player] = {}
|
mcl_fovapi.applied_modifiers[player] = {}
|
||||||
end
|
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]
|
local modifier = mcl_fovapi.registered_modifiers[modifier_name]
|
||||||
if modifier.on_start ~= nil then
|
if modifier.on_start ~= nil then
|
||||||
modifier.on_start(player)
|
modifier.on_start(player)
|
||||||
|
|
Loading…
Reference in a new issue