Skip to content

Commit

Permalink
Finally fix the ledger icon on teleport pipes. I have no idea what th…
Browse files Browse the repository at this point in the history
…at line does, but everything else seems to use it.
  • Loading branch information
multiplemonomials committed Dec 23, 2017
1 parent 6731646 commit 951b46a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ MinecraftForge-*.txt
/.settings
/.gradle

/minecraft-server
19 changes: 11 additions & 8 deletions src/main/java/buildcraft/additionalpipes/gui/GuiTeleportPipe.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
package buildcraft.additionalpipes.gui;

import net.minecraft.client.gui.GuiButton;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import org.lwjgl.opengl.GL11;

import buildcraft.additionalpipes.network.PacketHandler;
Expand All @@ -15,11 +9,19 @@
import buildcraft.core.client.CoreIconProvider;
import buildcraft.core.lib.gui.GuiBuildCraft;
import buildcraft.core.lib.gui.Ledger;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class GuiTeleportPipe extends GuiBuildCraft {

protected class TeleportPipeLedger extends Ledger {

protected class TeleportPipeLedger extends Ledger
{

int headerColour = 0xe1c92f;
int subheaderColour = 0xaaafb8;
Expand All @@ -46,6 +48,7 @@ public void draw(int x, int y)
drawBackground(x, y);

// Draw icon
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
drawIcon(CoreIconProvider.ENERGY.getSprite(), x + 3, y + 4);

if(!isFullyOpened())
Expand Down

0 comments on commit 951b46a

Please sign in to comment.