[Fix] Alloying Recipe Type is not registered

This commit is contained in:
Frank 2023-04-29 15:14:54 +02:00
parent 385e0baa5f
commit 61f5f41941
3 changed files with 8 additions and 1 deletions

View file

@ -16,6 +16,7 @@ import org.betterx.bclib.api.v3.tag.BCLBlockTags;
import org.betterx.bclib.commands.CommandRegistry; import org.betterx.bclib.commands.CommandRegistry;
import org.betterx.bclib.config.Configs; import org.betterx.bclib.config.Configs;
import org.betterx.bclib.networking.VersionChecker; import org.betterx.bclib.networking.VersionChecker;
import org.betterx.bclib.recipes.AlloyingRecipe;
import org.betterx.bclib.recipes.AnvilRecipe; import org.betterx.bclib.recipes.AnvilRecipe;
import org.betterx.bclib.recipes.CraftingRecipes; import org.betterx.bclib.recipes.CraftingRecipes;
import org.betterx.bclib.registry.BaseBlockEntities; import org.betterx.bclib.registry.BaseBlockEntities;
@ -63,6 +64,7 @@ public class BCLib implements ModInitializer {
WorldConfig.registerModCache(MOD_ID); WorldConfig.registerModCache(MOD_ID);
DataExchangeAPI.registerMod(MOD_ID); DataExchangeAPI.registerMod(MOD_ID);
AnvilRecipe.register(); AnvilRecipe.register();
AlloyingRecipe.register();
Conditions.registerAll(); Conditions.registerAll();
CommandRegistry.register(); CommandRegistry.register();
BCLBlockTags.ensureStaticallyLoaded(); BCLBlockTags.ensureStaticallyLoaded();

View file

@ -250,4 +250,8 @@ public class AlloyingRecipe implements Recipe<Container>, UnknownReceipBookCateg
packetBuffer.writeVarInt(recipe.smeltTime); packetBuffer.writeVarInt(recipe.smeltTime);
} }
} }
public static void register() {
//we call this to make sure that TYPE is initialized
}
} }

View file

@ -48,8 +48,9 @@ public class AnvilRecipe implements Recipe<Container>, UnknownReceipBookCategory
); );
public final static ResourceLocation ID = BCLib.makeID(GROUP); public final static ResourceLocation ID = BCLib.makeID(GROUP);
public static void register() {
public static void register() {
//we call this to make sure that TYPE is initialized
} }
private final ResourceLocation id; private final ResourceLocation id;