CC: Tweaked

CC: Tweaked

57M Downloads

RemotePeripheralWrapper should clean up mounts

SquidDev opened this issue ยท 0 comments

commented

Minecraft Version

1.16.x

Version

1.98.1

Details

PeripheralAPI.PeripheralWrapper will unmount any stray drives when a peripheral detaches:

https://github.com/SquidDev-CC/CC-Tweaked/blob/62172c60492010c392ec1b359ac67ce8c8a0cda2/src/main/java/dan200/computercraft/core/apis/PeripheralAPI.java#L85-L89

However, wired modems do not do the same. We should add some mount tracking here and perform the same logic. We should also add similar "not attached" checks like we do in the peripheral wrapper.

It may also be worth adding log warnings for when peripherals don't unmount themselves.