fixed style
This commit is contained in:
parent
926764b0b5
commit
41479f2021
3 changed files with 11 additions and 12 deletions
api/buildcraft/api/recipes
common/buildcraft
|
@ -14,16 +14,16 @@ import net.minecraftforge.fluids.FluidStack;
|
|||
|
||||
public interface IFlexibleCrafter {
|
||||
|
||||
public int getCraftingItemStackSize();
|
||||
int getCraftingItemStackSize();
|
||||
|
||||
public ItemStack getCraftingItemStack(int slotid);
|
||||
ItemStack getCraftingItemStack(int slotid);
|
||||
|
||||
public ItemStack decrCraftingItemgStack(int slotid, int val);
|
||||
ItemStack decrCraftingItemgStack(int slotid, int val);
|
||||
|
||||
public FluidStack getCraftingFluidStack(int tankid);
|
||||
FluidStack getCraftingFluidStack(int tankid);
|
||||
|
||||
public FluidStack decrCraftingFluidStack(int tankid, int val);
|
||||
FluidStack decrCraftingFluidStack(int tankid, int val);
|
||||
|
||||
public int getCraftingFluidStackSize();
|
||||
int getCraftingFluidStackSize();
|
||||
|
||||
}
|
||||
|
|
|
@ -63,7 +63,6 @@ public class BoardRobotPicker implements IRedstoneBoardRobot<EntityRobot> {
|
|||
if (!initialized) {
|
||||
range = data.getInteger("range");
|
||||
|
||||
IBoardParameter[] params = board.getParameters(data);
|
||||
ItemStack[] stacks = new ItemStack[params.length];
|
||||
|
||||
for (int i = 0; i < stacks.length; ++i) {
|
||||
|
|
|
@ -439,20 +439,20 @@ public class TileRefinery extends TileBuildCraft implements IFluidHandler, IInve
|
|||
|
||||
@Override
|
||||
public FluidStack decrCraftingFluidStack(int tankid, int val) {
|
||||
FluidStack result;
|
||||
FluidStack resultC;
|
||||
|
||||
if (val >= tanks[tankid].getFluid().amount) {
|
||||
result = tanks[tankid].getFluid();
|
||||
resultC = tanks[tankid].getFluid();
|
||||
tanks[tankid].setFluid(null);
|
||||
} else {
|
||||
result = tanks[tankid].getFluid().copy();
|
||||
result.amount = val;
|
||||
resultC = tanks[tankid].getFluid().copy();
|
||||
resultC.amount = val;
|
||||
tanks[tankid].getFluid().amount -= val;
|
||||
}
|
||||
|
||||
updateRecipe();
|
||||
|
||||
return result;
|
||||
return resultC;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue