mirror of
https://github.com/GreenXenith/mesecons_wireless.git
synced 2024-08-20 13:04:12 +02:00
Fix changing range in disabled transmitter
This commit is contained in:
parent
2377268cf3
commit
8ca249c10b
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
|
||||||
|
Loading…
Reference in New Issue
Block a user