From 0cbc3644eef15fa61f50fbdd56a5f865a8fde66f Mon Sep 17 00:00:00 2001 From: DS-Minetest <vorunbekannt75@web.de> Date: Sat, 31 Dec 2016 22:58:26 +0100 Subject: [PATCH] fix the place of begin of data at set --- digilines_memory/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/digilines_memory/init.lua b/digilines_memory/init.lua index ab0565f..5d5fb98 100644 --- a/digilines_memory/init.lua +++ b/digilines_memory/init.lua @@ -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]) 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)) digiline:receptor_send(pos, digiline.rules.default, channel, OK_MSG)--bug was here 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 end, }) - + if i ~= 1 then minetest.register_craft({ type = "shapeless",