Some cleanup...

This commit is contained in:
Lizbeth Rika committed 2015-08-17 21:03:55 +01:00
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);