Ultreon / devices-mod

A Minecraft Mod that adds in electronic devices that actually work
GNU General Public License v3.0
20 stars 7 forks source link

Flash Drive file structure is corrupt after obtaining #80

Closed XyperCode closed 7 months ago

XyperCode commented 1 year ago

Describe the bug When using the flash drive, the file browser is unable to retrieve the drive structure for the flash drive. The error message states Unable to retrieve drive structure for 'XXXX' where XXXX is the name of that flash drive.

[Netty Server IO #1/INFO] (Devices : Debugger) pos == -6, 76, 5
[Netty Server IO #1/INFO] (Devices : Debugger) block->registryName == devices:white_laptop
[Netty Server IO #1/INFO] (Devices : Debugger) level->isClient == false
[Netty Server IO #1/INFO] (Devices : Debugger) tileEntity == null

To Reproduce Steps to reproduce the behavior:

  1. Get a Flash Drive of any color (in game)
  2. Get a Laptop of any color (in game)
  3. Put that flash drive in the laptop.
  4. Open the laptop.
  5. Go to the File Browser app.
  6. In the disk selection select the flash drive.
  7. See error on dialog. And the game's log files for info.

Expected behavior The file browser should be able to retrieve the structure and show the contents of the flash drive.

Screenshots image

Please complete the following information:

FOR FABRIC:

Additional context This issue seems to also happen on Devices Mod 0.7.3 for 1.19.3.

XyperCode commented 7 months ago

Should be fixed in https://github.com/Ultreon/devices-mod/commit/8082aacebe76651059991347d31d2ac14daca927