From daed3aac38e890e3c3c263e2d93ea0b8ed79ca04 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sat, 24 Feb 2018 09:38:02 -0500 Subject: [PATCH] 1.7.10 compatibility --- sys/apis/peripheral.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/apis/peripheral.lua b/sys/apis/peripheral.lua index aa96c56..0d527fb 100644 --- a/sys/apis/peripheral.lua +++ b/sys/apis/peripheral.lua @@ -54,11 +54,8 @@ function Peripheral.addDevice(deviceList, side) name = uniqueName end - local s, m = pcall(function() deviceList[name] = Peripheral.wrap(side) end) - if not s and m then - _G.printError('wrap failed') - _G.printError(m) - end + -- this can randomly fail + pcall(function() deviceList[name] = Peripheral.wrap(side) end) if deviceList[name] then Util.merge(deviceList[name], {