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

Deactivate diesel generator when there is no energy output. #5457

Open
wants to merge 1 commit into
base: 1.18.2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -170,6 +170,11 @@ public void tickServer()
{
consumeTick--;
}
else if(active)
{
active = false;
animation_fanFadeOut = 80;
}
if(consumeTick<=0) //Consume 10*tick-amount every 10ticks to allow for 1/10th mB amounts
{
GeneratorFuel recipe = recipeGetter.apply(level, tanks[0].getFluid().getFluid());
Expand Down