fix(jui): add null check for items to renderSlot()
Some checks are pending
Build (Linux, x86_64) / build-linux (push) Waiting to run
Build (Linux, x86_64) / build-linux-debug (push) Waiting to run
Clang Format / clang-format (push) Waiting to run

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);