fix: Cosmeticized Backpacks not being recognized by storage overlay

This commit is contained in:
Linnea Gräf
2025-05-08 00:07:37 +02:00
parent 40256ca601
commit 05f9bc064c

View File

@@ -32,8 +32,8 @@ sealed interface StorageBackingHandle {
StorageBackingHandle, HasBackingScreen StorageBackingHandle, HasBackingScreen
companion object { companion object {
private val enderChestName = "^Ender Chest \\(([1-9])/[1-9]\\)$".toRegex() private val enderChestName = "^Ender Chest (?:✦ )?\\(([1-9])/[1-9]\\)$".toRegex()
private val backPackName = "^.+Backpack \\(Slot #([0-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 * Parse a screen into a [StorageBackingHandle]. If this returns null it means that the screen is not