aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-05-08 00:07:37 +0200
committerLinnea Gräf <nea@nea.moe>2025-05-08 00:08:09 +0200
commit05f9bc064cb01041d79d08d386485c29bfa20027 (patch)
tree1b16d891f45d7c894cf06320dbc2ca2dace7e643 /src
parent40256ca60135f8796066ac445211b9d084f2a0af (diff)
downloadFirmament-05f9bc064cb01041d79d08d386485c29bfa20027.tar.gz
Firmament-05f9bc064cb01041d79d08d386485c29bfa20027.tar.bz2
Firmament-05f9bc064cb01041d79d08d386485c29bfa20027.zip
fix: Cosmeticized Backpacks not being recognized by storage overlay
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/features/inventory/storageoverlay/StorageBackingHandle.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/features/inventory/storageoverlay/StorageBackingHandle.kt b/src/main/kotlin/features/inventory/storageoverlay/StorageBackingHandle.kt
index 8fad4df..d7346c2 100644
--- a/src/main/kotlin/features/inventory/storageoverlay/StorageBackingHandle.kt
+++ b/src/main/kotlin/features/inventory/storageoverlay/StorageBackingHandle.kt
@@ -32,8 +32,8 @@ sealed interface StorageBackingHandle {
StorageBackingHandle, HasBackingScreen
companion object {
- private val enderChestName = "^Ender Chest \\(([1-9])/[1-9]\\)$".toRegex()
- private val backPackName = "^.+Backpack \\(Slot #([0-9]+)\\)$".toRegex()
+ private val enderChestName = "^Ender Chest (?:✦ )?\\(([1-9])/[1-9]\\)$".toRegex()
+ private val backPackName = "^.+Backpack (?:✦ )?\\(Slot #([0-9]+)\\)$".toRegex()
/**
* Parse a screen into a [StorageBackingHandle]. If this returns null it means that the screen is not