diff options
author | nea <nea@nea.moe> | 2023-10-01 18:57:58 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-10-01 18:57:58 +0200 |
commit | d0cc95b1e9a674c41bedc50d1d7923159e2bd6a2 (patch) | |
tree | c5c50829ee4694665ad62e30bbecadb4011e8c6a /src/main/kotlin/moe/nea/firmament/features/inventory | |
parent | ec4be71f181138a0e95135bcd96618273aa2fcc5 (diff) | |
download | firmament-d0cc95b1e9a674c41bedc50d1d7923159e2bd6a2.tar.gz firmament-d0cc95b1e9a674c41bedc50d1d7923159e2bd6a2.tar.bz2 firmament-d0cc95b1e9a674c41bedc50d1d7923159e2bd6a2.zip |
Fix slot locking background not rendering on UUIDless items
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/inventory')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt b/src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt index 943f7dd..05e9935 100644 --- a/src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt +++ b/src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt @@ -117,7 +117,7 @@ object SlotLocking : FirmamentFeature { } SlotRenderEvents.Before.subscribe { val isSlotLocked = it.slot.inventory is PlayerInventory && it.slot.index in (lockedSlots ?: setOf()) - val isUUIDLocked = (it.slot.stack?.skyblockUUID ?: return@subscribe) in (lockedUUIDs ?: setOf()) + val isUUIDLocked = (it.slot.stack?.skyblockUUID) in (lockedUUIDs ?: setOf()) if (isSlotLocked || isUUIDLocked) { it.context.fill( it.slot.x, |