Skip to content

Commit

Permalink
Merge pull request #9 from Synthitic/0.0.3
Browse files Browse the repository at this point in the history
0.0.3 alpha
  • Loading branch information
Synthitic committed Jun 3, 2024
2 parents f787459 + 8c290b1 commit 32f5dbf
Show file tree
Hide file tree
Showing 47 changed files with 2,623 additions and 507 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ modGroup = com.fulltrix.gcyl

# Version of your mod.
# This field can be left empty if you want your mod's version to be determined by the latest git tag instead.
modVersion = 0.0.1
modVersion = 0.0.3

# Whether to use the old jar naming structure (modid-mcversion-version) instead of the new version (modid-version)
includeMCVersionJar = false
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/fulltrix/gcyl/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import gregtech.api.recipes.GTRecipeInputCache;
import gregtech.api.recipes.recipeproperties.FusionEUToStartProperty;
import gregtech.api.unification.material.event.MaterialEvent;
import gregtech.common.ConfigHolder;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
Expand Down Expand Up @@ -56,6 +57,8 @@ public static void forceHighTierConfig(HighTierEvent event) {

//Force enable tiered casings from GCYM
GCYMConfigHolder.globalMultiblocks.enableTieredCasings = true;
//Force enable low quality gems
//ConfigHolder.recipes.generateLowQualityGems = true;
}

@SubscribeEvent(priority = EventPriority.NORMAL)
Expand All @@ -65,6 +68,7 @@ public static void registerMaterials(MaterialEvent event) {
GCYLMaterials.register2();
GCYLMaterials.registerSuperconductors();
GCYLMaterials.materialChanges();
GCYLMaterials.tempMaterialModifications();
}

@SubscribeEvent
Expand Down Expand Up @@ -116,7 +120,7 @@ public static void initComponents(RegistryEvent.Register<IRecipe> event) {
}


@SubscribeEvent(priority = EventPriority.LOW)
@SubscribeEvent(priority = EventPriority.NORMAL)
public static void registerRecipes(RegistryEvent.Register<IRecipe> event) {

AdvFusionCoilProperty.registerAdvFusionTier(1, "1");
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/fulltrix/gcyl/GCYLCore.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package com.fulltrix.gcyl;

import com.fulltrix.gcyl.covers.GCYLCoverBehaviors;
import com.fulltrix.gcyl.item.GCYLHeatingCoil;
import com.fulltrix.gcyl.item.GCYLMetaBlocks;
import com.fulltrix.gcyl.machines.GCYLTileEntities;
import gregtech.GTInternalTags;
import gregtech.api.GregTechAPI;
import gregtech.api.cover.CoverDefinition;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fml.common.Mod;
Expand All @@ -17,6 +20,7 @@
import java.io.IOException;

import static com.fulltrix.gcyl.item.GCYLMetaBlocks.HEATING_COIL;
import static gregtech.api.GregTechAPI.COVER_REGISTRY;
import static gregtech.api.GregTechAPI.HEATING_COILS;

@Mod(modid = GCYLCore.MODID, name = GCYLCore.NAME, version = GCYLCore.VERSION,
Expand Down Expand Up @@ -44,6 +48,11 @@ public void preInit(FMLPreInitializationEvent event) {
// load "Do your mod setup. Build whatever data structures you care about." (Remove if not needed)
public void init(FMLInitializationEvent event) throws IOException {
proxy.onLoad();

COVER_REGISTRY.unfreeze();
GCYLCoverBehaviors.init();
MinecraftForge.EVENT_BUS.post(new GregTechAPI.RegisterEvent<>(COVER_REGISTRY, CoverDefinition.class));

}

@EventHandler
Expand Down
Loading

0 comments on commit 32f5dbf

Please sign in to comment.