mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Deduplicate a bunch of code pertaining to drawing the background layer
This commit is contained in:
61 files changed
+51
-429
No files matched your search
@@ -40,10 +40,7 @@ public class GuiDynamicTank extends GuiEmbeddedGaugeTile<TileEntityDynamicTank>
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float partialTick, int mouseX, int mouseY) {
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
mc.renderEngine.bindTexture(getGuiLocation());
|
||||
drawDefaultTexturedModalRect();
|
||||
protected void drawGuiContainerBackgroundLayer(int guiWidth, int guiHeight, int xAxis, int yAxis) {
|
||||
int scaledFluidLevel = tileEntity.getScaledFluidLevel(58);
|
||||
if (scaledFluidLevel > 0 && tileEntity.structure != null) {
|
||||
displayGauge(7, 14, scaledFluidLevel, tileEntity.structure.fluidStored, 0);
|
||||
|
||||
Reference in new issue
Block a user