Fixed shaft naming
This commit is contained in:
parent
9a9c6d7ab1
commit
4cadc35deb
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue