mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-19 03:49:31 +00:00
rename tank
This commit is contained in:
1 parent
07b44d03ca
commit
c88cc8fa98
2 files changed
+6
-6
No files matched your search
@@ -157,7 +157,7 @@ public class VatRecipeHandler extends TemplateRecipeHandler {
|
||||
Fluid outputFluid = rec.resultFluid.getFluid();
|
||||
List<PositionedStack> stacks = rec.getIngredients();
|
||||
for (PositionedStack ps : stacks) {
|
||||
if (ps instanceof PositionedStack.Fluid) {
|
||||
if (ps instanceof PositionedStack.Tank) {
|
||||
continue;
|
||||
}
|
||||
float mult = VatRecipeManager.getInstance()
|
||||
@@ -177,10 +177,6 @@ public class VatRecipeHandler extends TemplateRecipeHandler {
|
||||
return fluid != null ? fluid : FluidUtil.getFluidFromItem(stack);
|
||||
}
|
||||
|
||||
private static PositionedStack.Fluid createTank(FluidStack fluid, int x, int y) {
|
||||
return new PositionedStack.Fluid(fluid, x, y, 15, 47, FluidContainerRegistry.BUCKET_VOLUME * 8);
|
||||
}
|
||||
|
||||
private static FluidStack withAmount(FluidStack fluid, int amount) {
|
||||
FluidStack copy = fluid.copy();
|
||||
copy.amount = amount;
|
||||
@@ -314,5 +310,9 @@ public class VatRecipeHandler extends TemplateRecipeHandler {
|
||||
this.lastResultAmount = getResultFluidAmount();
|
||||
this.resultTank = createTank(withAmount(this.resultFluid, this.lastResultAmount), 127, 1);
|
||||
}
|
||||
|
||||
private static PositionedStack.Tank createTank(FluidStack fluid, int x, int y) {
|
||||
return new PositionedStack.Tank(fluid, x, y, 15, 47, FluidContainerRegistry.BUCKET_VOLUME * 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user