From a50a8af3e5ec2abfd2aa344b026b6d388e4d6c6b Mon Sep 17 00:00:00 2001 From: 90 Date: Mon, 29 Apr 2024 11:16:29 +0100 Subject: [PATCH] Add item(s) to AE2 creative tab too alongside ProjectE tab --- src/main/java/gripe/_90/appliede/AppliedE.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/gripe/_90/appliede/AppliedE.java b/src/main/java/gripe/_90/appliede/AppliedE.java index daba3ca..4c8d4e6 100644 --- a/src/main/java/gripe/_90/appliede/AppliedE.java +++ b/src/main/java/gripe/_90/appliede/AppliedE.java @@ -2,6 +2,7 @@ import java.math.BigInteger; +import appeng.api.ids.AECreativeTabIds; import net.minecraft.Util; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.Item; @@ -61,7 +62,7 @@ public AppliedE() { } private void addToCreativeTab(BuildCreativeModeTabContentsEvent event) { - if (event.getTab().equals(PECreativeTabs.PROJECTE.get())) { + if (event.getTab().equals(PECreativeTabs.PROJECTE.get()) || event.getTabKey() == AECreativeTabIds.MAIN) { event.accept(EMC_MODULE::get); } }