Skip to content

Commit

Permalink
Fixed fabric loading, closes #107
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Jul 11, 2024
1 parent c1a49cf commit eee4b1f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Fabric/src/main/java/com/hrznstudio/emojiful/EmojifulFabric.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@
import net.minecraft.client.gui.screens.ChatScreen;
import net.minecraft.client.gui.screens.InBedChatScreen;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.minecraft.world.item.crafting.RecipeType;

public class EmojifulFabric implements ModInitializer {


public static final RecipeType<EmojiRecipe> EMOJI_RECIPE_TYPE = RecipeType.register(Constants.MOD_ID + ":emoji_recipe_type");
public static final RecipeType<EmojiRecipe> EMOJI_RECIPE_TYPE = Registry.register(BuiltInRegistries.RECIPE_TYPE,
ResourceLocation.fromNamespaceAndPath(Constants.MOD_ID, "emoji_recipe_type"), new RecipeType<EmojiRecipe>() {
@Override
public String toString() {
return "emoji_recipe_type";
}
});
public static final RecipeSerializer<EmojiRecipe> EMOJI_RECIPE_SERIALIZER = RecipeSerializer.register(Constants.MOD_ID + ":emoji_recipe", new EmojiRecipeSerializer());

@Override
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Project
version=5.1.1
version=5.1.2
group=com.hrznstudio.emojiful

#Parchment
Expand Down

0 comments on commit eee4b1f

Please sign in to comment.