mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 07:37:10 +00:00
fix(jui): add null check for items to renderSlot()
This commit is contained in:
parent
fafaad1974
commit
ba406c7e97
|
|
@ -259,6 +259,10 @@ void AbstractContainerScreen::renderSlot(Slot* slot) {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
if (item == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
itemRenderer->renderGuiItem(font, minecraft->textures, item, x, y);
|
itemRenderer->renderGuiItem(font, minecraft->textures, item, x, y);
|
||||||
itemRenderer->renderGuiItemDecorations(font, minecraft->textures, item, x,
|
itemRenderer->renderGuiItemDecorations(font, minecraft->textures, item, x,
|
||||||
y);
|
y);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue