Glass panes lay down on the casting table.

Makes Glass Panes lay down on the casting table, may need some tweaking
in regard to the location.
removed a debug log message, Herp Derp.
This commit is contained in:
covers1624 committed 2015-05-02 04:14:32 +09:30
1 parent b38cfee5ff
commit d900e096d7
2 files changed
+10 -1

No files matched your search

@@ -5,8 +5,11 @@ import net.minecraft.client.renderer.entity.*;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.*;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;
import tconstruct.library.ItemBlocklike;
import tconstruct.smeltery.TinkerSmeltery;
import tconstruct.smeltery.logic.CastingTableLogic;
import tconstruct.tools.entity.FancyEntityItem;
@@ -61,6 +64,13 @@ public class CastingTableSpecialRenderer extends TileEntitySpecialRenderer
GL11.glTranslatef(0F, -0.1F, 0.2275F);
}
if (stack.isItemEqual(new ItemStack(TinkerSmeltery.glassPane)))
{
GL11.glRotatef(90F, 1F, 0F, 0F);
GL11.glTranslatef(0F, -0.194F, -0.1F);
GL11.glScalef(0.85F, 0.85F, 0.85F);
}
RenderItem.renderInFrame = true;
RenderManager.instance.renderEntityWithPosYaw(entityitem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
RenderItem.renderInFrame = false;