mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-22 05:02:34 +00:00
Fix the brewery not consuming input items
This commit is contained in:
1 parent
2d459dd953
commit
d0dffe7edd
3 files changed
+53
-15
No files matched your search
@@ -11,9 +11,11 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Map;
|
||||
|
||||
public class BreweryLogic extends ComponentProcessSetCost implements IProcess, INetwork.GuiNBT {
|
||||
@Nullable
|
||||
public BreweryCrafting currentCrafting;
|
||||
|
||||
public BreweryLogic(final Machine machine) {
|
||||
@@ -65,6 +67,7 @@ public class BreweryLogic extends ComponentProcessSetCost implements IProcess, I
|
||||
output = output.copy();
|
||||
output.amount = 1000;
|
||||
this.getUtil().fillTank(BreweryMachine.TANK_OUTPUT, output);
|
||||
this.currentCrafting = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +78,7 @@ public class BreweryLogic extends ComponentProcessSetCost implements IProcess, I
|
||||
final FluidStack stack = this.getUtil().drainTank(BreweryMachine.TANK_INPUT, 1000);
|
||||
this.currentCrafting = this.getInputCrafting();
|
||||
this.currentCrafting.inputFluid = stack;
|
||||
this.getUtil().removeIngredients(new int[]{0, 1, 2, 3, 4}, BreweryMachine.SLOTS_INVENTORY);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user