From 5cafa97dd1628274048d65305db5fc32a328381d Mon Sep 17 00:00:00 2001 From: teknomunk Date: Tue, 11 Jun 2024 18:40:44 +0200 Subject: [PATCH] Fix formspec code that reads strength button field (#4385) Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4385 Reviewed-by: the-real-herowl Co-authored-by: teknomunk Co-committed-by: teknomunk --- mods/ITEMS/mcl_beacons/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_beacons/init.lua b/mods/ITEMS/mcl_beacons/init.lua index ef6f6cb65..e17de8a0e 100644 --- a/mods/ITEMS/mcl_beacons/init.lua +++ b/mods/ITEMS/mcl_beacons/init.lua @@ -265,7 +265,7 @@ minetest.register_node("mcl_beacons:beacon", { remove_beacon_beam(pos) end, on_receive_fields = function(pos, formname, fields, sender) - if fields.swiftness or fields.regeneration or fields.leaping or fields.strenght + if fields.swiftness or fields.regeneration or fields.leaping or fields.strength or fields.haste or fields.resistance or fields.absorption or fields.slow_falling then local sender_name = sender:get_player_name() local power_level = beacon_blockcheck(pos) @@ -329,7 +329,7 @@ minetest.register_node("mcl_beacons:beacon", { end minetest.get_meta(pos):set_string("effect","resistance") successful = true - elseif fields.strenght and power_level >= 3 then + elseif fields.strength and power_level >= 3 then if power_level == 4 then minetest.get_meta(pos):set_int("effect_level",2) else