Fix for Solar panels overfill (#2339)/ Thanks to m44ster

This commit is contained in:
m44ster 2021-02-13 19:08:38 +01:00 committed by GitHub
parent cf91ae20e7
commit 48d595037b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,6 +166,7 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
// State checking and updating
if (world.getTime() % 20 == 0) {
checkOverfill = true;
updateState();
}
@ -292,4 +293,4 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
.sync(this::getSunState, this::setSunState)
.addInventory().create(this, syncID);
}
}
}