mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
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:
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user