mirror of
https://github.com/minetest-mods/technic.git
synced 2025-04-15 00:41:43 +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"),
|
||||
shape = meta:get_int("shape")
|
||||
})
|
||||
return
|
||||
elseif msg == "off" then
|
||||
meta:set_int("enabled", 0)
|
||||
elseif msg == "on" then
|
||||
@ -189,7 +190,10 @@ local digiline_def = {
|
||||
elseif msg:sub(1, 5) == "shape" then
|
||||
update_forcefield(pos, meta, false)
|
||||
meta:set_int("shape", tonumber(msg:sub(7)))
|
||||
else
|
||||
return
|
||||
end
|
||||
set_forcefield_formspec(meta)
|
||||
end
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user