mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Some cleanup...
This commit is contained in:
1 parent
5f3381fd5d
commit
0bb3f56f46
105 files changed
+711
-782
No files matched your search
@@ -79,7 +79,7 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem {
|
||||
if(!world.isRemote) {
|
||||
for(PotionEffect effect : getBrew(stack).getPotionEffects(stack)) {
|
||||
PotionEffect newEffect = new PotionEffect(effect.getPotionID(), effect.getDuration(), effect.getAmplifier(), true);
|
||||
Potion potion = Potion.potionTypes[newEffect.getPotionID()];
|
||||
Potion potion = Potion.potionTypes[newEffect.getPotionID()];
|
||||
if(potion.isInstant())
|
||||
potion.affectEntity(player, player, newEffect.getAmplifier(), 1F);
|
||||
else player.addPotionEffect(newEffect);
|
||||
|
||||
Reference in new issue
Block a user