Typo getVarients
This commit is contained in:
parent
2a9e973362
commit
8c257595f5
3 changed files with 3 additions and 3 deletions
|
@ -267,7 +267,7 @@ public class Registration
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Field f = partClass.getField( "part" + type.name() );
|
Field f = partClass.getField( "part" + type.name() );
|
||||||
Enum varients[] = type.getVarients();
|
Enum varients[] = type.getVariants();
|
||||||
if ( varients == null )
|
if ( varients == null )
|
||||||
{
|
{
|
||||||
ItemStackSrc is = ((ItemMultiPart) partItem.item()).createPart( type, null );
|
ItemStackSrc is = ((ItemMultiPart) partItem.item()).createPart( type, null );
|
||||||
|
|
|
@ -157,7 +157,7 @@ public class ItemMultiPart extends AEBaseItem implements IPartItem, IItemGroup
|
||||||
if ( pt == null )
|
if ( pt == null )
|
||||||
return "Unnamed";
|
return "Unnamed";
|
||||||
|
|
||||||
Enum[] varients = pt.getVarients();
|
Enum[] varients = pt.getVariants();
|
||||||
|
|
||||||
if ( varients != null )
|
if ( varients != null )
|
||||||
return super.getItemStackDisplayName( is ) + " - " + varients[dmgToPart.get( is.getItemDamage() ).varient].toString();
|
return super.getItemStackDisplayName( is ) + " - " + varients[dmgToPart.get( is.getItemDamage() ).varient].toString();
|
||||||
|
|
|
@ -126,7 +126,7 @@ public enum PartType
|
||||||
baseDamage = baseMetaValue;
|
baseDamage = baseMetaValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Enum[] getVarients()
|
public Enum[] getVariants()
|
||||||
{
|
{
|
||||||
if ( this == CableSmart || this == CableCovered || this == CableGlass || this == CableDense )
|
if ( this == CableSmart || this == CableCovered || this == CableGlass || this == CableDense )
|
||||||
return AEColor.values();
|
return AEColor.values();
|
||||||
|
|
Loading…
Reference in a new issue