Skip to content

Commit

Permalink
Add item(s) to AE2 creative tab too alongside ProjectE tab
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Apr 29, 2024
1 parent 4f2ce50 commit a50a8af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gripe/_90/appliede/AppliedE.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a50a8af

Please sign in to comment.