From a18af06e720768fc09df2b247eab8496cf4f4b37 Mon Sep 17 00:00:00 2001 From: Fingercomp Date: Sun, 15 Oct 2023 21:11:18 +0700 Subject: [PATCH] Fix tape persistence --- src/main/scala/ocelot/desktop/inventory/item/TapeItem.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/scala/ocelot/desktop/inventory/item/TapeItem.scala b/src/main/scala/ocelot/desktop/inventory/item/TapeItem.scala index 3540ee2..15072d5 100644 --- a/src/main/scala/ocelot/desktop/inventory/item/TapeItem.scala +++ b/src/main/scala/ocelot/desktop/inventory/item/TapeItem.scala @@ -24,6 +24,10 @@ class TapeItem(var tape: Tape) extends Item with ComponentItem { tooltip.addLine(s"Label: ${tape.label}") } + for (storageId <- tape.storageId) { + tooltip.addLine(s"ID: $storageId") + } + tooltip.addLine(s"Size: ${formatSize(tape.size)}") tooltip.addLine(f"Length: ${tape.lengthMinutes}%.0f minutes") }