Fixed the addition of the "creative control circuit"
This commit is contained in:
parent
d9bb5845cd
commit
dde9b53447
2 changed files with 13 additions and 2 deletions
|
@ -27,6 +27,11 @@ public final class Tier
|
|||
return name;
|
||||
}
|
||||
|
||||
public boolean isObtainable()
|
||||
{
|
||||
return this != CREATIVE;
|
||||
}
|
||||
|
||||
private String name;
|
||||
|
||||
private BaseTier(String s)
|
||||
|
|
|
@ -26,7 +26,10 @@ public class ItemControlCircuit extends ItemMekanism
|
|||
{
|
||||
for(BaseTier tier : BaseTier.values())
|
||||
{
|
||||
icons[tier.ordinal()] = register.registerIcon("mekanism:" + tier.getName() + "ControlCircuit");
|
||||
if(tier.isObtainable())
|
||||
{
|
||||
icons[tier.ordinal()] = register.registerIcon("mekanism:" + tier.getName() + "ControlCircuit");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,7 +44,10 @@ public class ItemControlCircuit extends ItemMekanism
|
|||
{
|
||||
for(BaseTier tier : BaseTier.values())
|
||||
{
|
||||
itemList.add(new ItemStack(item, 1, tier.ordinal()));
|
||||
if(tier.isObtainable())
|
||||
{
|
||||
itemList.add(new ItemStack(item, 1, tier.ordinal()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue