mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-18 21:14:11 +02:00
Fixed the exclusive modifiers not being exclusive
This commit is contained in:
parent
98b6ead591
commit
5afd0aa255
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user