Fixed gears not showing their material name

This commit is contained in:
Calclavia 2014-01-30 21:59:45 +08:00
parent 5725a99501
commit 813ba4e167
2 changed files with 11 additions and 2 deletions

View file

@ -10,6 +10,7 @@ import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import resonantinduction.core.Settings;
import resonantinduction.core.prefab.part.ItemMultipartBase;
import resonantinduction.electrical.wire.EnumWireMaterial;
import codechicken.lib.vec.BlockCoord;
import codechicken.lib.vec.Vector3;
import codechicken.multipart.ControlKeyModifer;
@ -25,6 +26,12 @@ public class ItemGear extends ItemMultipartBase
super("gear", Settings.getNextItemID());
}
@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

@ -29,7 +29,7 @@ tile.resonantinduction\:material.5.name=Industrial Stone
tile.resonantinduction\:material.6.name=Industrial Stone Slab
tile.resonantinduction\:material.7.name=Industrial Mossy Stone
tile.resonantinduction\:material.8.name=Dark Steel
tile.resonantinduction\:material.9.name=Tinted Steel
tile.resonantinduction\:material.9.namee=Tinted Steel
tile.resonantinduction\:material.10.name=Steel
## Items
@ -57,7 +57,9 @@ tile.resonantinduction\:fluidPipe.1.name=Stone Trough
### Mechanical Module
## Energy
item.resonantinduction\:gear.name=Gear
item.resonantinduction\:gear.0.name=Wooden Gear
item.resonantinduction\:gear.1.name=Stone Gear
item.resonantinduction\:gear.2.name=Metal Gear
item.resonantinduction\:gearShaft.name=Gear Shaft
tile.resonantinduction\:windTurbine.name=Wind Turbine
tile.resonantinduction\:windTurbine.tooltip=The wind turbine generates power through air flow and pressure.