forked from VoxeLibre/VoxeLibre
Change to conversion table
This commit is contained in:
parent
2fc3d92550
commit
468c2bc68f
|
@ -84,6 +84,9 @@ local pallete_order = {
|
||||||
pane_magenta_flat = 16,
|
pane_magenta_flat = 16,
|
||||||
pane_magenta = 16
|
pane_magenta = 16
|
||||||
}
|
}
|
||||||
|
local EFFECT_CONVERSIONS = {
|
||||||
|
strenght = "strength"
|
||||||
|
}
|
||||||
|
|
||||||
local function get_beacon_beam(glass_nodename)
|
local function get_beacon_beam(glass_nodename)
|
||||||
if glass_nodename == "air" then return 0 end
|
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)
|
local power_level = beacon_blockcheck(pos)
|
||||||
|
|
||||||
if effect_string == "strenght" then
|
local new_effect_string = EFFECT_CONVERSION[effect_string]
|
||||||
effect_string = "strength"
|
if new_effect_string then
|
||||||
|
effect_string = new_effect_string
|
||||||
meta:set_string("effect", effect_string)
|
meta:set_string("effect", effect_string)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue