Skip to content

Commit

Permalink
Rename ModCreativeModeTabs to GICreativeModeTabs
Browse files Browse the repository at this point in the history
  • Loading branch information
StavWasPlayZ committed Apr 23, 2024
1 parent 852caac commit 41989c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.ItemStack;

public abstract class ModCreativeModeTabs {
public abstract class GICreativeModeTabs {
public static void load() {}

public static final ResourceKey<CreativeModeTab> INSTRUMENTS_TAB = register("instruments_tab",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void onInitialize() {
ModBlocks.load();
ModBlockEntities.load();

ModCreativeModeTabs.load();
GICreativeModeTabs.load();
ModItems.load();
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/cstav/genshinstrument/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static com.cstav.genshinstrument.util.ServerUtil.sendInternalOpenPacket;

import com.cstav.genshinstrument.GInstrumentMod;
import com.cstav.genshinstrument.ModCreativeModeTabs;
import com.cstav.genshinstrument.GICreativeModeTabs;

import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.core.Registry;
Expand Down Expand Up @@ -42,7 +42,7 @@ private static Item register(final String id, final Item item) {

private static void addToItemGroups(final Item item) {
// All shall go to the instruments and tools tab
addToTab(ModCreativeModeTabs.INSTRUMENTS_TAB, item);
addToTab(GICreativeModeTabs.INSTRUMENTS_TAB, item);
addToTab(CreativeModeTabs.TOOLS_AND_UTILITIES, item);
}

Expand Down

0 comments on commit 41989c4

Please sign in to comment.