fix(jui): add null check for items to renderSlot()

This commit is contained in:
Sally Knight
2026-03-24 07:08:37 +03:00
parent fafaad1974
commit ba406c7e97

View File

@@ -259,6 +259,10 @@ void AbstractContainerScreen::renderSlot(Slot* slot) {
// }
// }
if (item == NULL) {
return;
}
itemRenderer->renderGuiItem(font, minecraft->textures, item, x, y);
itemRenderer->renderGuiItemDecorations(font, minecraft->textures, item, x,
y);