mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 18:23:57 +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->renderGuiItemDecorations(font, minecraft->textures, item, x,
|
||||
y);
|
||||
|
|
|
|||
Loading…
Reference in a new issue