CC: Tweaked

CC: Tweaked

59M Downloads

Disk mounts duplicate when drive is connected to multiple wired modems.

aybri opened this issue ยท 2 comments

commented

Minecraft Version

1.20.1

Version

1.110.1

Details

When connecting two or more wired modems to a single disk drive, multiple duplicate /disk* mounts will show up connected to the same mounted filesystem. While there are checks in place for the typical peripheral API in order to prevent duplicates (I checked by using peripheral.find("drive")), this is not in place for disk mounting, which seems to be at least a partially separate system.

Steps can be reproduced by:

  1. Setting down a computer and a disk drive (containing a floppy or other mountable filesystem) a distance away from it.
  2. Placing two or more wired modem blocks against the disk drive and enable them (notice how it says both drive_0 and drive_1 are connected, despite there only being one drive).
  3. Connecting those modem blocks back to the computer with networking cables, and another modem block next to the computer.
  4. Run ls and observe the duplicate mounts.

My logs can be found here: latest.log

commented

Here's my setup and my testing. The peripheral API doesn't duplicate and only returns one, while when I use ls, it DOES duplicate and create two /disk mounts that connect to the same filesystem.

2024-08-08_13 32 28
2024-08-08_13 33 31

commented

This was actually a mistake on my part, I forgot to wrap the peripheral.find("drive") call. Looking at the peripherals program call below, you can see that it actually DOES appear twice.

2024-08-08_13 38 22

Furthermore, the folks over at the Minecraft Computer Mods Discord have informed me that this is actually intended behavior, and is a common problem with new players (which I have no idea how I hadn't ran into yet). As such, I will be closing this bug report as "not planned."