Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add permitted list of dimension for windmill #47

Merged
merged 16 commits into from
Oct 20, 2022
Merged

Add permitted list of dimension for windmill #47

merged 16 commits into from
Oct 20, 2022

Conversation

maggi373
Copy link
Member

No description provided.

maggi373 and others added 3 commits September 11, 2022 19:49
Windmill location is checked against the whitelist.
@maggi373 maggi373 linked an issue Oct 19, 2022 that may be closed by this pull request
@maggi373 maggi373 requested review from DrParadox7 and removed request for DrParadox7 October 19, 2022 21:13
isSiliconLoaded = true;
}
if(Loader.isModLoaded("ProjRed|Core"))
if(Loader.isModLoaded("EnderIO") || Loader.isModLoaded("GalacticraftCore") || Loader.isModLoaded("ProjRed|Core"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should have a config if we are supporting the mod for community use.

It can be easily done by adding:
if (MekanismConfig.general.enableSiliconCircuitRecipe)
Above
if(Loader.isModLoaded("EnderIO") || Loader.isModLoaded("GalacticraftCore") || Loader.isModLoaded("ProjRed|Core"))
and implement it as a config.

Copy link
Member Author

Choose a reason for hiding this comment

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

already made one lel... not pushed yet

String[] windid = {"0"};
generators.winddimensionids = Arrays.asList(Mekanism.configuration.getStringList("winddimensionids", "generation", windid, "List of dimension id to be whitelisted"));
dimid = generators.winddimensionids.stream().map(Integer::parseInt).collect(Collectors.toList());
System.out.println("Windmill whitelist : " + dimid);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should take this debug option before making a release

@DrParadox7
Copy link
Collaborator

Other than the nitpick above it looks good.

@maggi373 maggi373 merged commit 72ee0a2 into 1.7.10 Oct 20, 2022
@maggi373 maggi373 deleted the windmill branch October 20, 2022 16:13
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.

Windmills generates energy in space
2 participants