Skip to content

Commit

Permalink
opt-in ConsumeLiquidsDynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Jun 5, 2024
1 parent a439e3c commit f0611fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 84 deletions.
80 changes: 0 additions & 80 deletions lib/src/multicraft/ConsumeFluidDynamic.java

This file was deleted.

8 changes: 4 additions & 4 deletions lib/src/multicraft/MultiCrafter.java
Original file line number Diff line number Diff line change
Expand Up @@ -670,11 +670,11 @@ public void setBars(MultiCrafterBuild build) {
if(hasLiquids) {
boolean added = false;
for (Consume consumer : consumers) {
if (consumer instanceof ConsumeFluidDynamic) {
ConsumeFluidDynamic liq = (ConsumeFluidDynamic) consumer;
if (consumer instanceof ConsumeLiquidsDynamic) {
ConsumeLiquidsDynamic liq = (ConsumeLiquidsDynamic) consumer;
added = true;

for (LiquidStack stack : liq.fluids.get(build)) {
for (LiquidStack stack : liq.liquids.get(build)) {
addLiquidBar(stack.liquid);
}
}
Expand Down Expand Up @@ -800,7 +800,7 @@ protected void setupConsumers() {
// items seq is already shrunk, it's safe to access
(MultiCrafterBuild b) -> b.getCurRecipe().input.items.items
));
if (isConsumeFluid) consume(new ConsumeFluidDynamic(
if (isConsumeFluid) consume(new ConsumeLiquidsDynamic(
// fluids seq is already shrunk, it's safe to access
(MultiCrafterBuild b) -> b.getCurRecipe().input.fluids.items
));
Expand Down

0 comments on commit f0611fd

Please sign in to comment.