Skip to content

Commit

Permalink
New day, new gt breakage. (GTNewHorizons#3177)
Browse files Browse the repository at this point in the history
  • Loading branch information
chochem authored Sep 13, 2024
1 parent 9e0e16d commit 862278c
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 55 deletions.
9 changes: 0 additions & 9 deletions src/main/java/tectech/loader/TecTechConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import java.io.File;

import net.minecraft.launchwrapper.Launch;

import eu.usrv.yamcore.config.ConfigManager;

public class TecTechConfig extends ConfigManager {
Expand Down Expand Up @@ -81,8 +79,6 @@ protected void PreInit() {
TESLA_SINGLE_LOSS_PER_BLOCK = 1;
TESLA_SINGLE_RANGE = 20;
TESLA_VISUAL_EFFECT = true;

ENABLE_GOD_FORGE = (boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment");
}

/**
Expand All @@ -94,11 +90,6 @@ protected void Init() {
.getBoolean("DebugMode", "debug", DEBUG_MODE, "Enables logging and other purely debug features");
POWERLESS_MODE = _mainConfig
.getBoolean("PowerlessMode", "debug", POWERLESS_MODE, "Enables 0EU/t multi block machinery");
ENABLE_GOD_FORGE = _mainConfig.getBoolean(
"EnableGodForge",
"debug",
ENABLE_GOD_FORGE,
"Enables the in progress God Forge; enabled automatically in dev env");

BOOM_ENABLE = _mainConfig.getBoolean(
"BoomEnable",
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tectech/loader/recipe/Godforge.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public class Godforge implements Runnable {

@Override
public void run() {
if (!tectech.TecTech.configTecTech.ENABLE_GOD_FORGE) return;
// Solid to plasma recipes
{
// Fusion tier 1-3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2983,8 +2983,6 @@ private void addEOHRecipes() {
}

private void addGodforgeRecipes() {
if (!tectech.TecTech.configTecTech.ENABLE_GOD_FORGE) return;

if (EternalSingularity.isModLoaded()) {
// Controller
TTRecipeAdder.addResearchableAssemblylineRecipe(
Expand Down Expand Up @@ -3682,7 +3680,7 @@ private void addWirelessEnergyRecipes() {
}

public void runLateRecipes() {
if (tectech.TecTech.configTecTech.ENABLE_GOD_FORGE && EternalSingularity.isModLoaded()) {
if (EternalSingularity.isModLoaded()) {
// Shielding Casing
TTRecipeAdder.addResearchableAssemblylineRecipe(
GTOreDictUnificator.get(OrePrefixes.block, MaterialsUEVplus.TranscendentMetal, 1),
Expand Down
49 changes: 23 additions & 26 deletions src/main/java/tectech/loader/thing/MachineLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -2228,32 +2228,29 @@ public void run() {
.set(new MTEEnergyInfuser(EnergyInfuser.ID, "multimachine.em.infuser", "Energy Infuser").getStackForm(1));
Machine_Multi_EyeOfHarmony.set(
new MTEEyeOfHarmony(EyeofHarmony.ID, "multimachine.em.eye_of_harmony", "Eye of Harmony").getStackForm(1L));
if (tectech.TecTech.configTecTech.ENABLE_GOD_FORGE) {
Machine_Multi_ForgeOfGods.set(
new MTEForgeOfGods(ForgeoftheGods.ID, "multimachine.em.forge_of_gods", "Forge of the Gods")
.getStackForm(1L));
addItemTooltip(Machine_Multi_ForgeOfGods.get(1), GTValues.AuthorCloud);
Machine_Multi_SmeltingModule.set(
new MTESmeltingModule(
HelioflarePowerForge.ID,
"multimachine.em.smelting_module",
"Helioflare Power Forge").getStackForm(1L));
addItemTooltip(Machine_Multi_SmeltingModule.get(1), GTValues.AuthorCloud);
Machine_Multi_MoltenModule.set(
new MTEMoltenModule(HeliofluxMeltingCore.ID, "multimachine.em.molten_module", "Helioflux Melting Core")
.getStackForm(1L));
addItemTooltip(Machine_Multi_MoltenModule.get(1), GTValues.AuthorCloud);
Machine_Multi_PlasmaModule.set(
new MTEPlasmaModule(
HeliothermalPlasmaFabricator.ID,
"multimachine.em.plasma_module",
"Heliothermal Plasma Fabricator").getStackForm(1L));
addItemTooltip(Machine_Multi_PlasmaModule.get(1), GTValues.AuthorCloud);
Machine_Multi_QuarkGluonPlasmaModule.set(
new MTEExoticModule(HeliofusionExoticizer.ID, "multimachine.em.exotic_module", "Heliofusion Exoticizer")
.getStackForm(1L));
addItemTooltip(Machine_Multi_QuarkGluonPlasmaModule.get(1), GTValues.AuthorCloud);
}

Machine_Multi_ForgeOfGods.set(
new MTEForgeOfGods(ForgeoftheGods.ID, "multimachine.em.forge_of_gods", "Forge of the Gods")
.getStackForm(1L));
addItemTooltip(Machine_Multi_ForgeOfGods.get(1), GTValues.AuthorCloud);
Machine_Multi_SmeltingModule.set(
new MTESmeltingModule(HelioflarePowerForge.ID, "multimachine.em.smelting_module", "Helioflare Power Forge")
.getStackForm(1L));
addItemTooltip(Machine_Multi_SmeltingModule.get(1), GTValues.AuthorCloud);
Machine_Multi_MoltenModule.set(
new MTEMoltenModule(HeliofluxMeltingCore.ID, "multimachine.em.molten_module", "Helioflux Melting Core")
.getStackForm(1L));
addItemTooltip(Machine_Multi_MoltenModule.get(1), GTValues.AuthorCloud);
Machine_Multi_PlasmaModule.set(
new MTEPlasmaModule(
HeliothermalPlasmaFabricator.ID,
"multimachine.em.plasma_module",
"Heliothermal Plasma Fabricator").getStackForm(1L));
addItemTooltip(Machine_Multi_PlasmaModule.get(1), GTValues.AuthorCloud);
Machine_Multi_QuarkGluonPlasmaModule.set(
new MTEExoticModule(HeliofusionExoticizer.ID, "multimachine.em.exotic_module", "Heliofusion Exoticizer")
.getStackForm(1L));
addItemTooltip(Machine_Multi_QuarkGluonPlasmaModule.get(1), GTValues.AuthorCloud);

// ===================================================================================================
// Hatches
Expand Down
10 changes: 4 additions & 6 deletions src/main/java/tectech/loader/thing/ThingsLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,11 @@ public void run() {

TTCasingsContainer.StabilisationFieldGenerators = new StabilisationFieldCasing();

if (tectech.TecTech.configTecTech.ENABLE_GOD_FORGE) {
TTCasingsContainer.GodforgeCasings = new BlockGodforgeCasings();
TecTech.LOGGER.info("Godforge blocks registered.");
TTCasingsContainer.GodforgeCasings = new BlockGodforgeCasings();
TecTech.LOGGER.info("Godforge blocks registered.");

BlockGodforgeGlass.run();
TecTech.LOGGER.info("Godforge Glass registered");
}
BlockGodforgeGlass.run();
TecTech.LOGGER.info("Godforge Glass registered");

BlockQuantumGlass.run();
TecTech.LOGGER.info("Quantum Glass registered");
Expand Down
12 changes: 5 additions & 7 deletions src/main/java/tectech/proxy/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ public void registerRenderInfo() {
.registerItemRenderer(Item.getItemFromBlock(eyeOfHarmonyRenderBlock), new EOHItemRenderer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEyeOfHarmony.class, new EOHTileEntitySR());

if (tectech.TecTech.configTecTech.ENABLE_GOD_FORGE) {
BlockGodforgeGlass.renderID = RenderingRegistry.getNextAvailableRenderId();
RenderingRegistry.registerBlockHandler(BlockGodforgeGlass.renderID, new RenderGodforgeGlass());
BlockGodforgeGlass.renderID = RenderingRegistry.getNextAvailableRenderId();
RenderingRegistry.registerBlockHandler(BlockGodforgeGlass.renderID, new RenderGodforgeGlass());

MinecraftForgeClient
.registerItemRenderer(Item.getItemFromBlock(forgeOfGodsRenderBlock), new ItemRenderForgeOfGods());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityForgeOfGods.class, new RenderForgeOfGods());
}
MinecraftForgeClient
.registerItemRenderer(Item.getItemFromBlock(forgeOfGodsRenderBlock), new ItemRenderForgeOfGods());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityForgeOfGods.class, new RenderForgeOfGods());
}

@Override
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/tectech/thing/block/BlockForgeOfGods.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ public BlockForgeOfGods() {
this.setCreativeTab(TecTech.creativeTabTecTech);
this.setBlockName("Forge of the Gods Renderer");
this.setLightLevel(100.0f);
if (TecTech.configTecTech.ENABLE_GOD_FORGE) {
registerOther(this);
}
registerOther(this);
}

@Override
Expand Down

0 comments on commit 862278c

Please sign in to comment.