Compare commits
No commits in common. "94250b56c93364bfb292e974ac2be71b385f71fa" and "3f0487bb4832387dbb669a007b67fe97fc3da9ea" have entirely different histories.
94250b56c9
...
3f0487bb48
@ -70,7 +70,7 @@ local function loadState(fname, node)
|
||||
end
|
||||
|
||||
|
||||
local accessNode = Chest:fromPeripheral("minecraft:trapped_chest", true)
|
||||
local accessNode = Chest:fromPeripheral("minecraft:trapped_chest")
|
||||
local controller = loadState(CACHE_FILE, accessNode)
|
||||
local monitor = peripheral.find("monitor")
|
||||
|
||||
|
@ -6,13 +6,7 @@ Chest.__index = Chest
|
||||
-- Homogeneity allows chest scan to clone empty itemDetail slot to all empty slots in chest
|
||||
function Chest:fromPeripheral(chest, homogeneous)
|
||||
if type(chest) == "string" then
|
||||
local chestResult = peripheral.wrap(chest)
|
||||
|
||||
if chestResult == nil then
|
||||
chestResult = peripheral.find(chest)
|
||||
end
|
||||
|
||||
chest = chestResult
|
||||
chest = peripheral.wrap(chest)
|
||||
end
|
||||
|
||||
if chest == nil then
|
||||
|
Loading…
x
Reference in New Issue
Block a user