aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-10-01 18:57:58 +0200
committernea <nea@nea.moe>2023-10-01 18:57:58 +0200
commitd0cc95b1e9a674c41bedc50d1d7923159e2bd6a2 (patch)
treec5c50829ee4694665ad62e30bbecadb4011e8c6a /src/main
parentec4be71f181138a0e95135bcd96618273aa2fcc5 (diff)
downloadFirmament-d0cc95b1e9a674c41bedc50d1d7923159e2bd6a2.tar.gz
Firmament-d0cc95b1e9a674c41bedc50d1d7923159e2bd6a2.tar.bz2
Firmament-d0cc95b1e9a674c41bedc50d1d7923159e2bd6a2.zip
Fix slot locking background not rendering on UUIDless items
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt2
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,