fix disabled slots display

This commit is contained in:
MihailRis 2024-11-24 17:47:28 +03:00
parent 1a00a91b60
commit e8ee3e04b1

View File

@ -135,7 +135,7 @@ void SlotView::draw(const DrawContext* pctx, Assets* assets) {
const int slotSize = InventoryView::SLOT_SIZE;
const ItemStack& stack = *bound;
glm::vec4 tint(1.0f);
glm::vec4 tint(1, 1, 1, isEnabled() ? 1 : 0.5f);
glm::vec2 pos = calcPos();
glm::vec4 color = getColor();