fix: Cosmeticized Backpacks not being recognized by storage overlay
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user