mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-25 16:36:55 +00:00
474f571798
Prior to this change we would schedule a new task which attached peripherals on the ComputerThread on the empty task queue. This had a couple of issues: - Slow running tasks on the computer thread could result in delays in peripherals being attached (technically, though rarely seen in practice). - Now that the ComputerThread runs tasks at once, there was a race condition in computers being turned on/off and peripherals being attached/detached. Note, while the documentation said that peripherals would only be (at|de)tached on the computer thread, wired modems would attach on the server thread, so this was not the case in practice. One should be aware that peripherals are still detached on the computer thread, most notably when turning a computer on/off. This is almost definitely going to break some less well-behaved mods, and possible some of the well behaved ones. I've tested this on SC, so it definitely works fine with Computronics and Plethora. |
||
---|---|---|
.. | ||
filesystem | ||
lua | ||
media | ||
network | ||
peripheral | ||
permissions | ||
redstone | ||
turtle | ||
ComputerCraftAPI.java | ||
package-info.java |