Skip to content

Commit

Permalink
Toolforges are not pattern chests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Oct 7, 2014
1 parent ed630aa commit 3b3f409
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/tconstruct/tools/model/TableRender.java
Expand Up @@ -5,6 +5,7 @@
import net.minecraft.client.renderer.*;
import net.minecraft.world.IBlockAccess;
import org.lwjgl.opengl.GL11;
import tconstruct.tools.TinkerTools;

public class TableRender implements ISimpleBlockRenderingHandler
{
Expand All @@ -16,7 +17,7 @@ public void renderInventoryBlock (Block block, int metadata, int modelID, Render
if (modelID == model)
{
// until we get the new model.. finally...
if(metadata >= 5 && metadata <= 9) {
if(block == TinkerTools.toolStationWood && metadata >= 5 && metadata <= 9) {
// pattern chest
renderer.setRenderBounds(0,0,0,1,0.875,1);
renderStandardInvBlock(renderer, block, metadata);
Expand All @@ -43,7 +44,7 @@ public boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, Block
{
int metadata = world.getBlockMetadata(x,y,z);
// until we get the new model.. finally...
if(metadata >= 5 && metadata <= 9) {
if(block == TinkerTools.toolStationWood && metadata >= 5 && metadata <= 9) {
// pattern chest
renderer.setRenderBounds(0,0,0,1,0.875,1);
renderer.renderStandardBlock(block, x,y,z);
Expand Down

0 comments on commit 3b3f409

Please sign in to comment.