Skip to content

Commit

Permalink
Glass panes lay down on the casting table.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
covers1624 committed May 1, 2015
1 parent b38cfee commit d900e09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -5,8 +5,11 @@
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;

Expand Down Expand Up @@ -61,6 +64,13 @@ void renderItem (CastingTableLogic logic, ItemStack stack)
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;
Expand Down
Expand Up @@ -46,7 +46,6 @@ public void decodeInto (ChannelHandlerContext ctx, ByteBuf buffer)
@Override
public void handleClientSide (EntityPlayer player)
{
TConstruct.logger.info("Packet Arrived!");
TPlayerStats stats = new TPlayerStats(player);
stats.loadNBTData(playerStats);
TinkerArmor.proxy.updatePlayerStats(stats);
Expand Down

0 comments on commit d900e09

Please sign in to comment.