Use Collections.addAll

This commit is contained in:
mezz committed 2016-10-20 23:18:49 -07:00
1 parent 57930991ec
commit c6783e573c
12 files changed
+30 -57

No files matched your search

@@ -17,6 +17,8 @@ import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
import org.lwjgl.opengl.GL11;
import java.util.Collections;
public class ControlBreweryProgress extends ControlProgressBase {
static Texture Brewery;
static Texture BreweryOverlay;
@@ -47,9 +49,7 @@ public class ControlBreweryProgress extends ControlProgressBase {
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(17.0f, 22.0f));
GL11.glDisable(3089);
final ItemStackSet stacks = new ItemStackSet();
for (final ItemStack stack : logic.currentCrafting.inputs) {
stacks.add(stack);
}
Collections.addAll(stacks, logic.currentCrafting.inputs);
stacks.add(logic.currentCrafting.ingr);
int x = 1;
int y = 6;