mirror of
https://github.com/GreenXenith/mesecons_wireless.git
synced 2024-11-25 00:33:53 +01: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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user