1
0
mirror of https://github.com/kepler155c/opus synced 2025-11-03 17:13:07 +00:00

manipulators aaarrrggghhh

This commit is contained in:
kepler155c@gmail.com
2019-07-19 10:06:34 -06:00
parent d8dd17333c
commit 92686381c7
4 changed files with 61 additions and 40 deletions

View File

@@ -1,14 +1,22 @@
local os = _G.os
local os = _G.os
local peripheral = _G.peripheral
-- Default label
if not os.getComputerLabel() then
local id = os.getComputerID()
if _G.turtle then
os.setComputerLabel('turtle_' .. id)
elseif _G.pocket then
os.setComputerLabel('pocket_' .. id)
elseif _G.commands then
os.setComputerLabel('command_' .. id)
elseif peripheral.find('neuralInterface') then
os.setComputerLabel('neural_' .. id)
else
os.setComputerLabel('computer_' .. id)
end