Skip to content

Configs changes#87

Open
Sklaip wants to merge 1 commit into
BiggerSeries:1.19from
Sklaip:1.19_new_configs
Open

Configs changes#87
Sklaip wants to merge 1 commit into
BiggerSeries:1.19from
Sklaip:1.19_new_configs

Conversation

@Sklaip

@Sklaip Sklaip commented Aug 18, 2023

Copy link
Copy Markdown

Added the ability to load transitions from config; added the energy multiplier for turbine fuel. This will give more opportunities to modpack developers

@RogueLogix RogueLogix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this can be condensed into about 3 lines, I'll probably just add this myself for all branches, but i reviewed the PR anyway.

liquidTransitions.clear();
gasTransitions.clear();

File configDir = new File(FMLPaths.GAMEDIR.get() + "/config/biggerreactors/transitions");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is already set to use datapacks, and there are mods that inject dynamic datapacks

public double turbineMultiplier;

@DataLoader.Range("(0,)")
public double turbineEnergyMultiplier;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the wrong place to add this, it should be in the main config file, not for each transition.


public class ModernTurbineSimulation implements ITurbineSimulation {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mind the whitespace

@RogueLogix

Copy link
Copy Markdown
Contributor

Related #106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants