Start removing need for keeping track of guiWidth and guiHeight, as they are equal to guiLeft and guiTop

This commit is contained in:
pupnewfster committed 2019-07-08 11:47:36 -04:00
1 parent a7b29c209f
commit d6b27e95a2
47 files changed
+218 -263

No files matched your search

@@ -131,11 +131,11 @@ public class GuiRobitRepair extends GuiRobit implements IContainerListener {
}
@Override
protected void drawGuiContainerBackgroundLayer(int guiWidth, int guiHeight, int xAxis, int yAxis) {
super.drawGuiContainerBackgroundLayer(guiWidth, guiHeight, xAxis, yAxis);
drawTexturedModalRect(guiWidth + 59, guiHeight + 20, 0, ySize + (repairContainer.getSlot(0).getHasStack() ? 0 : 16), 110, 16);
protected void drawGuiContainerBackgroundLayer(int xAxis, int yAxis) {
super.drawGuiContainerBackgroundLayer(xAxis, yAxis);
drawTexturedModalRect(guiLeft + 59, guiTop + 20, 0, ySize + (repairContainer.getSlot(0).getHasStack() ? 0 : 16), 110, 16);
if ((repairContainer.getSlot(0).getHasStack() || repairContainer.getSlot(1).getHasStack()) && !repairContainer.getSlot(2).getHasStack()) {
drawTexturedModalRect(guiWidth + 99, guiHeight + 45, xSize + 18, 36, 28, 21);
drawTexturedModalRect(guiLeft + 99, guiTop + 45, xSize + 18, 36, 28, 21);
}
}