Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lclc98 committed Oct 5, 2013
1 parent d85968f commit 2ea0d2f
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ public void renderTileEntityCrusherAt(TileEntityCrusher par1TileEntityCrusher, d
crusherModel.spin(par1TileEntityCrusher.getCrusherAngles());

String type = "";
if (par1TileEntityCrusher.getType() == 1)
if (par1TileEntityCrusher.getType() == 0)
{
type = "Stone";
}
else if (par1TileEntityCrusher.getType() == 1)
{
type = "Copper";
}
Expand All @@ -61,7 +65,7 @@ else if (par1TileEntityCrusher.getType() == 4)

if (par1TileEntityCrusher.isBurning())
{
texture = new ResourceLocation("Metallurgy:textures/blocks/machines/crusher/ModelCrusher" + type + "Burning.png");
Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("Metallurgy:textures/blocks/machines/crusher/ModelCrusher" + type + "Burning.png"));
// this.bindTextureByName("/mods/Metallurgy/textures/blocks/machines/crusher/ModelCrusher"
// + type + "Burning.png");
}
Expand Down
Loading

0 comments on commit 2ea0d2f

Please sign in to comment.