mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
rename tank
This commit is contained in:
1 parent
07b44d03ca
commit
c88cc8fa98
2 files changed
+6
-6
No files matched your search
+1
-1
@@ -3,7 +3,7 @@
|
||||
dependencies {
|
||||
api('com.github.GTNewHorizons:EnderCore:0.5.15:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:ForestryMC:4.11.37:dev')
|
||||
devOnlyNonPublishable('com.github.GTNewHorizons:NotEnoughItems:2.8.133-GTNH:dev')
|
||||
devOnlyNonPublishable('com.github.GTNewHorizons:NotEnoughItems:2.8.148-GTNH:dev')
|
||||
api("com.github.GTNewHorizons:GTNHLib:0.11.45:dev")
|
||||
compileOnly('com.github.GTNewHorizons:BuildCraft:7.1.63:dev')
|
||||
api('curse.maven:cofh-lib-220333:2388748') // https://www.curseforge.com/minecraft/mc-mods/cofh-lib/files/2388748
|
||||
|
||||
@@ -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