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

fix(photovoltaic-modules): Energy generation during day fix #950

Conversation

chriptus13
Copy link
Contributor

@chriptus13 chriptus13 commented Jan 2, 2025

Issue: #562

Description

  • Adjust photovoltaic modules to generate energy during whole sunny day
  • Use correct level day/night values
  • Do not generate energy at all during night

Checklist

  • My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you).
  • I have made corresponding changes to the documentation.
  • My changes are ready for review from a contributor.

Copy link
Member

@Rover656 Rover656 left a comment

Choose a reason for hiding this comment

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

I'll test this in-game shortly, but code wise I only have a single comment. Looking good, and thank you!

@chriptus13 chriptus13 requested a review from Rover656 January 2, 2025 16:02
Adjust photovoltaic modules to generate energy during whole sunny day;
Use correct level day/night values;
Do not generate energy at all during night.
…GenerationRate

refactor(photovoltaic-modules): little optimization
@chriptus13 chriptus13 force-pushed the fix/photovoltaic-modules-generation branch from eed0c02 to a9c8ceb Compare January 3, 2025 20:59
Copy link
Member

@Rover656 Rover656 left a comment

Choose a reason for hiding this comment

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

The daytime and nighttime detection seems to look good to me after a quick test. Thanks a lot!

@Rover656 Rover656 merged commit ece5afa into Team-EnderIO:dev/1.21.1 Jan 3, 2025
1 check passed
@chriptus13 chriptus13 deleted the fix/photovoltaic-modules-generation branch January 3, 2025 22:53
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