fix #3498
This commit is contained in:
parent
bfa69a2ef3
commit
54eb54d59a
1 changed files with 8 additions and 4 deletions
|
@ -101,11 +101,15 @@ public class TileRefinery extends TileBuildCraft implements IFluidHandler, IHasW
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getBattery().useEnergy(craftingResult.energyCost, craftingResult.energyCost, false) > 0) {
|
if (getBattery().useEnergy(craftingResult.energyCost, craftingResult.energyCost, true) > 0) {
|
||||||
CraftingResult<FluidStack> r = currentRecipe.craft(this, false);
|
CraftingResult<FluidStack> r = currentRecipe.craft(this, true);
|
||||||
if (r != null && r.crafted != null) {
|
if (r != null && r.crafted != null) {
|
||||||
// Shouldn't really happen, but its not properly documented
|
getBattery().useEnergy(craftingResult.energyCost, craftingResult.energyCost, false);
|
||||||
result.fill(r.crafted.copy(), true);
|
r = currentRecipe.craft(this, false);
|
||||||
|
if (r != null && r.crafted != null) {
|
||||||
|
// Shouldn't really happen, but its not properly documented
|
||||||
|
result.fill(r.crafted.copy(), true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue