This commit is contained in:
Bruno Rybársky 2024-05-24 20:19:11 +02:00
parent cb67687707
commit dbf738b492

@ -48,7 +48,7 @@ public class StorageScreen extends PagedGui {
protected DisplayElement getElement(int id) { protected DisplayElement getElement(int id) {
if (this.inventory.size() > id) { if (this.inventory.size() > id) {
ItemStack itemStack = this.inventory.getStack(id); ItemStack itemStack = this.inventory.getStack(id);
GuiElementBuilder guiElement = GuiElementBuilder.from(itemStack); GuiElementBuilder guiElement = new GuiElementBuilder(itemStack);
return DisplayElement.of(guiElement); return DisplayElement.of(guiElement);
} }
return DisplayElement.empty(); return DisplayElement.empty();