mirror of
https://github.com/GreenXenith/mesecons_wireless.git
synced 2025-04-05 16:41:25 +02:00
Fix changing range in disabled transmitter
This commit is contained in:
1
init.lua
1
init.lua
@ -172,6 +172,7 @@ mesecon.register_node("mesecons_wireless:transmitter", {
|
|||||||
if newrange and newrange >= 1 and newrange <= range_max then
|
if newrange and newrange >= 1 and newrange <= range_max then
|
||||||
local current = meta:get_int("range")
|
local current = meta:get_int("range")
|
||||||
if minetest.get_node(pos).name ~= "mesecons_wireless:transmitter_on" then
|
if minetest.get_node(pos).name ~= "mesecons_wireless:transmitter_on" then
|
||||||
|
meta:set_int("range", newrange)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- Turn off receivers outside smaller range
|
-- Turn off receivers outside smaller range
|
||||||
|
Reference in New Issue
Block a user