This commit is contained in:
Adrian Siekierka 2017-04-08 10:10:34 +02:00
parent bfa69a2ef3
commit 54eb54d59a

View file

@ -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);
}
} }
} }
} }