1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-10-04 09:50:47 +00:00
CC-Tweaked/projects/common/src
Jonathan Coates edb21f33be
Mount drives on the main thread
When the peripheral is attached, we add the computer to the map and
queue the actual disk to be mounted next tick. This avoids the
thread-safety issues with mutating the item (and creating disk ids) that
might be caused by doing it on the computer thread.

The mount is now also managed separately to the MediaStack, as that was
meant to be an immutable snapshot of the item!

Fixes #1282
2023-01-14 17:51:49 +00:00
..
client Fix mouse_up not being fired on Fabric 2022-12-29 22:16:36 +00:00
main Mount drives on the main thread 2023-01-14 17:51:49 +00:00
test/java/dan200/computercraft Support resource conditions in upgrade JSON 2023-01-02 15:56:01 +00:00
testFixtures/java/dan200/computercraft/test/shared Test for moving into a rotated container 2022-12-29 11:11:26 +00:00
testMod Mount drives on the main thread 2023-01-14 17:51:49 +00:00