mirror of
https://github.com/minetest-mods/technic.git
synced 2025-04-19 19:00:31 +02:00
fix formspec update
This commit is contained in:
parent
1c2f30f67b
commit
3f6444e751
@ -175,6 +175,7 @@ local digiline_def = {
|
|||||||
range = meta:get_int("range"),
|
range = meta:get_int("range"),
|
||||||
shape = meta:get_int("shape")
|
shape = meta:get_int("shape")
|
||||||
})
|
})
|
||||||
|
return
|
||||||
elseif msg == "off" then
|
elseif msg == "off" then
|
||||||
meta:set_int("enabled", 0)
|
meta:set_int("enabled", 0)
|
||||||
elseif msg == "on" then
|
elseif msg == "on" then
|
||||||
@ -189,7 +190,10 @@ local digiline_def = {
|
|||||||
elseif msg:sub(1, 5) == "shape" then
|
elseif msg:sub(1, 5) == "shape" then
|
||||||
update_forcefield(pos, meta, false)
|
update_forcefield(pos, meta, false)
|
||||||
meta:set_int("shape", tonumber(msg:sub(7)))
|
meta:set_int("shape", tonumber(msg:sub(7)))
|
||||||
|
else
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
set_forcefield_formspec(meta)
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user