mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-11-14 10:15:38 +01:00
Better Distiller Brew checking
This commit is contained in:
parent
491da014b8
commit
5b8ab83734
@ -38,7 +38,7 @@ public class BCauldron {
|
||||
private BIngredients ingredients = new BIngredients();
|
||||
private final Block block;
|
||||
private int state = 0;
|
||||
private boolean changed = false;
|
||||
private boolean changed = false; // Not really needed anymore
|
||||
private Optional<BCauldronRecipe> particleRecipe; // null if we haven't checked, empty if there is none
|
||||
private Color particleColor;
|
||||
private Location particleLocation;
|
||||
|
@ -185,7 +185,7 @@ public class BDistiller {
|
||||
stand.setBrewingTime((int) ((float) brewTime / ((float) runTime / (float) DISTILLTIME)) + 1);
|
||||
|
||||
if (brewTime <= 1) { // Done!
|
||||
checkContents(stand.getInventory(), contents);
|
||||
contents = getDistillContents(stand.getInventory());
|
||||
stand.setBrewingTime(0);
|
||||
stand.update();
|
||||
if (!runDistill(stand.getInventory(), contents)) {
|
||||
|
Loading…
Reference in New Issue
Block a user