From d0cc95b1e9a674c41bedc50d1d7923159e2bd6a2 Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 1 Oct 2023 18:57:58 +0200 Subject: Fix slot locking background not rendering on UUIDless items --- src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin') 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, -- cgit