diff --git a/common/src/main/java/net/createcobblestone/data/GeneratorTypeLoader.java b/common/src/main/java/net/createcobblestone/data/GeneratorTypeLoader.java index f2b5b84..c8b40e4 100644 --- a/common/src/main/java/net/createcobblestone/data/GeneratorTypeLoader.java +++ b/common/src/main/java/net/createcobblestone/data/GeneratorTypeLoader.java @@ -5,6 +5,7 @@ import com.jozufozu.flywheel.util.Pair; import dev.architectury.injectables.annotations.ExpectPlatform; import dev.architectury.networking.NetworkManager; +import dev.architectury.platform.Platform; import dev.architectury.utils.Env; import io.netty.buffer.Unpooled; import net.createcobblestone.CreateCobblestoneMod; @@ -71,6 +72,10 @@ public static void loadGeneratorTypes(ResourceManager resourceManager) { loadedTypes.add(new Quintet<>(id.toString(), block, generatorStress, generatorRatio, generatorStorage)); + if (Platform.getEnvironment() == Env.SERVER) { + GeneratorType.initializeNewType(id.toString(), new ResourceLocation(block), generatorStress, generatorRatio, generatorStorage); + } + } catch (IOException e) { LOGGER.error("Error loading generator type: " + id, e); }