potion cleanup
This commit is contained in:
parent
460a58e062
commit
e108650cd4
30 changed files with 644 additions and 968 deletions
|
@ -124,11 +124,13 @@ public class EntityPotion extends EntityThrowable implements IObjectData
|
|||
|
||||
for (PotionEffect potioneffect : list)
|
||||
{
|
||||
int i = potioneffect.getPotionID();
|
||||
Potion i = potioneffect.getPotion();
|
||||
if(!entitylivingbase.isPotionApplicable(i))
|
||||
continue;
|
||||
|
||||
if (Potion.POTION_TYPES[i].isInstant())
|
||||
if (i.isInstant())
|
||||
{
|
||||
Potion.POTION_TYPES[i].affectEntity(this, this.getThrower(), entitylivingbase, potioneffect.getAmplifier(), d1);
|
||||
i.onImpact(this, this.getThrower(), entitylivingbase, potioneffect.getAmplifier(), d1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue