mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
Change to conversion table
This commit is contained in:
parent
2fc3d92550
commit
468c2bc68f
1 changed files with 6 additions and 2 deletions
|
@ -84,6 +84,9 @@ local pallete_order = {
|
|||
pane_magenta_flat = 16,
|
||||
pane_magenta = 16
|
||||
}
|
||||
local EFFECT_CONVERSIONS = {
|
||||
strenght = "strength"
|
||||
}
|
||||
|
||||
local function get_beacon_beam(glass_nodename)
|
||||
if glass_nodename == "air" then return 0 end
|
||||
|
@ -218,8 +221,9 @@ local function apply_effects_to_all_players(pos)
|
|||
|
||||
local power_level = beacon_blockcheck(pos)
|
||||
|
||||
if effect_string == "strenght" then
|
||||
effect_string = "strength"
|
||||
local new_effect_string = EFFECT_CONVERSION[effect_string]
|
||||
if new_effect_string then
|
||||
effect_string = new_effect_string
|
||||
meta:set_string("effect", effect_string)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue