Fix slot locking background not rendering on UUIDless items
This commit is contained in:
@@ -117,7 +117,7 @@ object SlotLocking : FirmamentFeature {
|
|||||||
}
|
}
|
||||||
SlotRenderEvents.Before.subscribe {
|
SlotRenderEvents.Before.subscribe {
|
||||||
val isSlotLocked = it.slot.inventory is PlayerInventory && it.slot.index in (lockedSlots ?: setOf())
|
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) {
|
if (isSlotLocked || isUUIDLocked) {
|
||||||
it.context.fill(
|
it.context.fill(
|
||||||
it.slot.x,
|
it.slot.x,
|
||||||
|
|||||||
Reference in New Issue
Block a user