mirror of
https://repo.or.cz/minetest_playereffects.git
synced 2024-11-15 21:00:18 +01:00
Fix accidental using of global variable “all”
This commit is contained in:
parent
e1a72e8206
commit
860358bcd1
2
init.lua
2
init.lua
|
@ -228,7 +228,7 @@ end
|
|||
|
||||
function playereffects.cancel_effect_type(effect_type_id, cancel_all, playername)
|
||||
local effects = playereffects.get_player_effects(playername)
|
||||
if(cancel_all==nil) then all = false end
|
||||
if(cancel_all==nil) then cancel_all = false end
|
||||
for e=1, #effects do
|
||||
if(effects[e].effect_type_id == effect_type_id) then
|
||||
playereffects.cancel_effect(effects[e].effect_id)
|
||||
|
|
Loading…
Reference in New Issue
Block a user