Fixed slots rendering in front of tooltips

This commit is contained in:
Sollace 2021-11-21 18:48:56 +02:00
parent 536172791e
commit cbc8c6a6de

View file

@ -71,7 +71,7 @@ public class SpellbookScreen extends HandledScreen<SpellbookScreenHandler> {
drawTexture(matrices, right, i, 425, 67, tileSize, tileSize, 512, 256);
}
matrices.pop();
drawSlots(matrices, mouseX, mouseY, partialTicks);
super.drawOverlays(matrices, mouseX, mouseY, partialTicks);
}
};
@ -90,7 +90,6 @@ public class SpellbookScreen extends HandledScreen<SpellbookScreenHandler> {
addDrawableChild(new PageButton(x + 350, y + 187, 1));
addDrawableChild(new PageButton(x + 300, y + 187, -1));
container.init(this::initPageContent);
addDrawable(this::drawSlots);
}
@Override