Properly remove hdd device on device unload.

This commit is contained in:
Florian Nücke
2020-12-05 00:03:54 +01:00
parent f79ccd6a22
commit 219176c16d

View File

@@ -371,6 +371,7 @@ public final class ComputerTileEntity extends AbstractTileEntity implements ITic
}
if (hdd != null) {
virtualMachine.board.removeDevice(hdd);
try {
hdd.close();
} catch (final IOException e) {