fix: more potion effect desync fixed
This commit is contained in:
@@ -62,7 +62,7 @@ public class BlockPermafrost extends BlockDryFrostedIce {
|
||||
entity.attackEntityFrom(DamageSource.MAGIC, Spells.permafrost.getProperty(Spell.DAMAGE).floatValue());
|
||||
int duration = Spells.permafrost.getProperty(Spell.EFFECT_DURATION).intValue();
|
||||
int amplifier = Spells.permafrost.getProperty(Spell.EFFECT_STRENGTH).intValue();
|
||||
((EntityLivingBase)entity).addPotionEffect(new PotionEffect(WizardryPotions.frost, duration, amplifier));
|
||||
if(!world.isRemote) ((EntityLivingBase)entity).addPotionEffect(new PotionEffect(WizardryPotions.frost, duration, amplifier));
|
||||
}
|
||||
|
||||
// EntityLivingBase's slipperiness code doesn't get the block below it properly so slipperiness only works for
|
||||
|
||||
@@ -68,9 +68,11 @@ public class BlockSnare extends Block implements ITileEntityProvider {
|
||||
|
||||
entity.attackEntityFrom(source, Spells.snare.getProperty(Spell.DAMAGE).floatValue());
|
||||
|
||||
((EntityLivingBase)entity).addPotionEffect(new PotionEffect(MobEffects.SLOWNESS,
|
||||
Spells.snare.getProperty(Spell.EFFECT_DURATION).intValue(),
|
||||
Spells.snare.getProperty(Spell.EFFECT_STRENGTH).intValue()));
|
||||
if(!world.isRemote){
|
||||
((EntityLivingBase)entity).addPotionEffect(new PotionEffect(MobEffects.SLOWNESS,
|
||||
Spells.snare.getProperty(Spell.EFFECT_DURATION).intValue(),
|
||||
Spells.snare.getProperty(Spell.EFFECT_STRENGTH).intValue()));
|
||||
}
|
||||
|
||||
if(!world.isRemote) world.destroyBlock(pos, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user