mirror of
				https://github.com/kepler155c/opus
				synced 2025-10-31 07:33:00 +00:00 
			
		
		
		
	1.7.10 compatibility
This commit is contained in:
		| @@ -54,11 +54,8 @@ function Peripheral.addDevice(deviceList, side) | |||||||
| 		name = uniqueName | 		name = uniqueName | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
| 	local s, m = pcall(function() deviceList[name] = Peripheral.wrap(side) end) | 	-- this can randomly fail | ||||||
| 	if not s and m then | 	pcall(function() deviceList[name] = Peripheral.wrap(side) end) | ||||||
| 		_G.printError('wrap failed') |  | ||||||
| 		_G.printError(m) |  | ||||||
| 	end |  | ||||||
|  |  | ||||||
| 	if deviceList[name] then | 	if deviceList[name] then | ||||||
| 		Util.merge(deviceList[name], { | 		Util.merge(deviceList[name], { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 kepler155c@gmail.com
					kepler155c@gmail.com