Skip to content

Commit

Permalink
works on fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStickyPiston committed Nov 6, 2024
1 parent bfffbf3 commit 8e923ab
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 8e923ab

Please sign in to comment.