From ad72dfcd007c813c156eb76bc5a1a7a842448bb6 Mon Sep 17 00:00:00 2001 From: Wurmatron Date: Fri, 10 Nov 2017 15:52:48 -0500 Subject: [PATCH] Fixed Item from Appearing in All Creative Tabs --- src/main/java/wurmatron/viral/common/items/ItemSyringe.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/wurmatron/viral/common/items/ItemSyringe.java b/src/main/java/wurmatron/viral/common/items/ItemSyringe.java index 34333ca..45a94df 100644 --- a/src/main/java/wurmatron/viral/common/items/ItemSyringe.java +++ b/src/main/java/wurmatron/viral/common/items/ItemSyringe.java @@ -22,8 +22,9 @@ public ItemSyringe () { @Override public void getSubItems (CreativeTabs tab,NonNullList 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