mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Correct missing declaration of local param
This commit is contained in:
parent
ad5759a5ad
commit
b9ba1300f9
1 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ local function register_potion(def)
|
||||||
effect_II = def.effect^mcl_potions.II_FACTOR
|
effect_II = def.effect^mcl_potions.II_FACTOR
|
||||||
end
|
end
|
||||||
|
|
||||||
dur_2 = dur / mcl_potions.II_FACTOR
|
local dur_2 = dur / mcl_potions.II_FACTOR
|
||||||
if def.name == "poison" then dur_2 = dur_2 - 1 end
|
if def.name == "poison" then dur_2 = dur_2 - 1 end
|
||||||
|
|
||||||
if def.name == "slowness" then
|
if def.name == "slowness" then
|
||||||
|
@ -190,7 +190,7 @@ local function register_potion(def)
|
||||||
|
|
||||||
if def.is_plus then
|
if def.is_plus then
|
||||||
|
|
||||||
dur_pl = dur * mcl_potions.PLUS_FACTOR
|
local dur_pl = dur * mcl_potions.PLUS_FACTOR
|
||||||
if def.name == "poison" or def.name == "regeneration" then
|
if def.name == "poison" or def.name == "regeneration" then
|
||||||
dur_pl = 90
|
dur_pl = 90
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue