From 8ca249c10bcef8f2a9304fe6ef0e68a7d2910bd8 Mon Sep 17 00:00:00 2001 From: GreenDimond <24834740+GreenXenith@users.noreply.github.com> Date: Wed, 20 Mar 2019 15:03:47 -0700 Subject: [PATCH] Fix changing range in disabled transmitter --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 96764d0..9d43cd8 100644 --- a/init.lua +++ b/init.lua @@ -172,6 +172,7 @@ mesecon.register_node("mesecons_wireless:transmitter", { if newrange and newrange >= 1 and newrange <= range_max then local current = meta:get_int("range") if minetest.get_node(pos).name ~= "mesecons_wireless:transmitter_on" then + meta:set_int("range", newrange) return end -- Turn off receivers outside smaller range