potion cleanup
This commit is contained in:
parent
460a58e062
commit
e108650cd4
30 changed files with 644 additions and 968 deletions
|
@ -1404,8 +1404,8 @@ public class ClientPlayer extends NetHandler
|
|||
|
||||
if (entity instanceof EntityLiving)
|
||||
{
|
||||
PotionEffect potioneffect = new PotionEffect(packetIn.getEffectId(), packetIn.getDuration(), packetIn.getAmplifier(), false, packetIn.func_179707_f());
|
||||
potioneffect.setPotionDurationMax(packetIn.func_149429_c());
|
||||
PotionEffect potioneffect = new PotionEffect(packetIn.getEffectId(), packetIn.getDuration(), packetIn.getAmplifier(), false, packetIn.hasParticles())
|
||||
.setRemaining(packetIn.getRemaining());
|
||||
((EntityLiving)entity).addEffect(potioneffect);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue