Skip to content

Commit

Permalink
Fixed Item from Appearing in All Creative Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wurmatron committed Nov 10, 2017
1 parent 47f74de commit ad72dfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/wurmatron/viral/common/items/ItemSyringe.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ public ItemSyringe () {

@Override
public void getSubItems (CreativeTabs tab,NonNullList <ItemStack> sub) {
for (int s = 0; s < EnumType.values ().length; s++)
sub.add (new ItemStack (Viral.syringe,1,s));
if (tab == CreativeTabs.MISC)
for (int s = 0; s < EnumType.values ().length; s++)
sub.add (new ItemStack (Viral.syringe,1,s));
}

@Override
Expand Down

0 comments on commit ad72dfc

Please sign in to comment.