Make API java 7 compileable, so that people who have an optional botania dep don't have to use java 8

This commit is contained in:
Vincent Lee committed 2016-03-03 10:33:57 -06:00
1 parent 2f1bc4188a
commit 19ed5877df
3 files changed
+47 -11

No files matched your search

@@ -129,7 +129,10 @@ public class Brew {
* Vial or an Alfglass Flask at all times.
*/
public List<PotionEffect> getPotionEffects(ItemStack stack) {
return getPotionEffectsShim(stack).stream().map(PotionEffectShim::toVanilla).collect(Collectors.toList());
List<PotionEffect> ret = new ArrayList<>();
for(PotionEffectShim s : getPotionEffectsShim(stack))
ret.add(s.toVanilla());
return ret;
}
}