commit
7b46384b7b
@ -57,7 +57,7 @@ local on_digiline_receive = function(pos, node, channel, msg)
|
|||||||
|
|
||||||
if cmd == GET_CMD then digiline:receptor_send(pos, digiline.rules.default, channel, data[addr])
|
if cmd == GET_CMD then digiline:receptor_send(pos, digiline.rules.default, channel, data[addr])
|
||||||
elseif cmd == SET_CMD and msg:split(" ")[3] ~= nil then
|
elseif cmd == SET_CMD and msg:split(" ")[3] ~= nil then
|
||||||
data[addr] = msg:sub(cmd:len() + tostring(addr):len() + 2, -1) -- its too complicated...
|
data[addr] = msg:sub(cmd:len() + tostring(addr):len() + 3, -1) -- its too complicated...
|
||||||
meta:set_string("data", minetest.serialize(data))
|
meta:set_string("data", minetest.serialize(data))
|
||||||
digiline:receptor_send(pos, digiline.rules.default, channel, OK_MSG)--bug was here
|
digiline:receptor_send(pos, digiline.rules.default, channel, OK_MSG)--bug was here
|
||||||
end
|
end
|
||||||
@ -90,7 +90,7 @@ for i, s in ipairs(MEMORY_CHIPS) do
|
|||||||
if fields.channel then minetest.get_meta(pos):set_string("channel", fields.channel) end
|
if fields.channel then minetest.get_meta(pos):set_string("channel", fields.channel) end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
if i ~= 1 then
|
if i ~= 1 then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user