mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 22:44:44 +00:00
Fix another problem caused by shifting idmap. Closes #147
This commit is contained in:
1 parent
ae89d0f18d
commit
c6420168aa
2 files changed
+10
-3
No files matched your search
@@ -117,12 +117,19 @@ public class Brew {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the list of potion effects for the ItemStack passed in.
|
||||
* Get the PotionEffectShim's that this brew has.
|
||||
*/
|
||||
public List<PotionEffectShim> getPotionEffectsShim(ItemStack stack) {
|
||||
return effects;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the list of vanilla PotionEffects for the ItemStack passed in.
|
||||
* Note that for the lexicon, this passes in a botania Managlass
|
||||
* Vial or an Alfglass Flask at all times.
|
||||
*/
|
||||
public List<PotionEffect> getPotionEffects(ItemStack stack) {
|
||||
return effects.stream().map(PotionEffectShim::toVanilla).collect(Collectors.toList());
|
||||
return getPotionEffectsShim(stack).stream().map(PotionEffectShim::toVanilla).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user