work on devorination

fixed issue where observed turtles can't move

added a layer of inderection to the lua ffi so it works with serde and
the computercraft standard library
This commit is contained in:
Andy Killorin 2023-12-28 17:46:29 -06:00
commit 16ff51a0cc
Signed by: ank
GPG key ID: B6241CA3B552BCA4

View file

@ -73,7 +73,11 @@ local function namefront()
if not front or not front.shutdown then
return false
end
return front.getLabel()
return { ["Name"] = { string = front.getLabel() } }
end
local function name()
return { ["Name"] = os.computerLabel() }
end
local function inventoryinfo()
@ -151,7 +155,7 @@ local commands = {
["CycleFront"] = restartfront,
["Poweroff"] = os.shutdown,
["GetFuelLimit"] = turtle.getFuelLimit,
["Name"] = os.computerLabel,
["Name"] = name,
["NameFront"] = namefront,
};