Skip to content

Commit

Permalink
dont reference mantle's copies of this
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Feb 7, 2014
1 parent bde810c commit 4b2fda2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -25,10 +25,10 @@ public CraftedSoilItemBlock(Block b)
@Override
public String getUnlocalizedName (ItemStack itemstack)
{
int pos = MathHelper.clamp_int(itemstack.getItemDamage(), 0, this.blockType.length - 1);
int pos = MathHelper.clamp_int(itemstack.getItemDamage(), 0, this.blockTypes.length - 1);
if (pos <= 4)
return super.getUnlocalizedName(itemstack);
return (new StringBuilder()).append("block.slime.soil.").append(this.blockType[pos]).toString();
return (new StringBuilder()).append("block.slime.soil.").append(this.blockTypes[pos]).toString();
}

@Override
Expand Down
Expand Up @@ -19,10 +19,10 @@ public CraftingSlabItemBlock(Block b)
@Override
public String getUnlocalizedName (ItemStack itemstack)
{
int pos = MathHelper.clamp_int(itemstack.getItemDamage(), 0, this.blockType.length - 1);
int pos = MathHelper.clamp_int(itemstack.getItemDamage(), 0, this.blockTypes.length - 1);
if (pos == 0 || pos == 5)
{
return this.blockType[pos];
return this.blockTypes[pos];
}
return super.getUnlocalizedName(itemstack);
}
Expand Down

0 comments on commit 4b2fda2

Please sign in to comment.