Fix for CC peripherals always throwing error.

This commit is contained in:
Tim Stableford 2015-11-06 18:31:27 +00:00
parent 8ecf0a74a8
commit ef62f57836

View file

@ -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."};
}
}