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:
parent
043baa7e35
commit
16ff51a0cc
1 changed files with 25 additions and 13 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue