Fix for CC peripherals always throwing error.

This commit is contained in:
Tim Stableford committed 2015-11-06 18:31:27 +00:00
1 parent 8ecf0a74a8
commit ef62f57836
1 file changed
+3 -2
@@ -40,8 +40,9 @@ public class CCPeripheral implements IPeripheral
return computerTile.invoke(method, arguments);
} catch(NoSuchMethodException e) {
return new Object[] {"Unknown command."};
} finally {
return new Object[] {"Error."};
} catch(Exception e) {
e.printStackTrace();
return new Object[] {"Error."};
}
}