1.4.0 BETA 5 hotfix

This commit is contained in:
MistPhizzle 2014-08-27 21:29:49 -04:00
parent 3b4250690f
commit 11f3f86176
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View file

@ -15,6 +15,7 @@ import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.util.Vector;
import com.projectkorra.ProjectKorra.Methods;
import com.projectkorra.ProjectKorra.ProjectKorra;
@ -143,6 +144,7 @@ public class Suffocate {
new TempPotionEffect((LivingEntity) entity, nausea);
if (System.currentTimeMillis() >= time + warmup) {
Methods.damageEntity(player, entity, damage);
entity.setVelocity(new Vector(0, 0, 0));
}
}
} catch (ConcurrentModificationException e) {