Fixed shaft naming

This commit is contained in:
Calclavia 2014-02-26 14:22:42 +08:00
parent 9a9c6d7ab1
commit 4cadc35deb
2 changed files with 7 additions and 1 deletions

View file

@ -21,6 +21,12 @@ public class ItemGearShaft extends JItemMultiPart implements IHighlight
setHasSubtypes(true);
}
@Override
public String getUnlocalizedName(ItemStack itemStack)
{
return super.getUnlocalizedName(itemStack) + "." + itemStack.getItemDamage();
}
@Override
public TMultiPart newPart(ItemStack itemStack, EntityPlayer player, World world, BlockCoord pos, int side, Vector3 hit)
{

View file

@ -128,7 +128,7 @@ public class PartGearShaft extends PartMechanical
@Override
protected ItemStack getItem()
{
return new ItemStack(Mechanical.itemGearShaft);
return new ItemStack(Mechanical.itemGearShaft, 1, tier);
}
@Override