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

@@ -210,9 +210,7 @@ public enum ExtraBeesFlowers implements IFlowerProvider, IAlleleFlowers, IChromo
public ItemStack[] affectProducts(World world, IIndividual individual, BlockPos pos, ItemStack[] products) {
if (this == ExtraBeesFlowers.Mystical) {
final List<ItemStack> prods = new ArrayList<>();
for (final ItemStack stack : products) {
prods.add(stack);
}
Collections.addAll(prods, products);
for (int k = 0; k < 50; ++k) {
final int tX = 7;
final int tY = 7;