Skip to content

Commit

Permalink
fixes #431 for realsies
Browse files Browse the repository at this point in the history
the font renderer might need more cleaning will do later
  • Loading branch information
way2muchnoise committed Dec 30, 2014
1 parent dc2cfc2 commit bcdcd31
Show file tree
Hide file tree
Showing 2 changed files with 560 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/minechem/item/element/ElementItemRenderer.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package minechem.item.element;

import minechem.item.ChemicalRoomStateEnum;
import minechem.render.FontRendererWithZLevel;
import minechem.render.RenderingUtil;
import minechem.utils.MinechemUtil;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.ItemRenderer;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.entity.item.EntityItem;
Expand Down Expand Up @@ -109,7 +109,7 @@ private void renderItemInInventory(ItemStack itemstack, ElementEnum element, IIc
GL11.glColor3f(1.0F, 1.0F, 1.0F);
RenderingUtil.drawTexturedRectUV(0, 0, 5, 16, 16, testtube);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
FontRenderer fontRenderer = Minecraft.getMinecraft().fontRenderer;
FontRendererWithZLevel fontRenderer = FontRendererWithZLevel.getFontRenderer(16);
fontRenderer.drawString(shortName, 1, 2, 0x000000);
fontRenderer.drawString(shortName, 1, 1, 0xEEEEEE);
}
Expand Down
Loading

0 comments on commit bcdcd31

Please sign in to comment.