fixed arctic armor killing players in hub
This commit is contained in:
parent
dfd17b1793
commit
5d1a8af347
@ -3,6 +3,7 @@ package mineplex.minecraft.game.classcombat.Skill.Mage;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Sound;
|
||||
@ -184,7 +185,7 @@ public class ArcticArmor extends Skill
|
||||
{
|
||||
if (event.getType() != UpdateType.FAST)
|
||||
return;
|
||||
|
||||
|
||||
for (Player cur : UtilServer.getPlayers())
|
||||
{
|
||||
if (cur.getGameMode() != GameMode.SURVIVAL)
|
||||
@ -192,6 +193,9 @@ public class ArcticArmor extends Skill
|
||||
|
||||
if (cur.getEyeLocation().getBlock().getType() == Material.ICE)
|
||||
{
|
||||
if (!Factory.BlockRestore().Contains(cur.getEyeLocation().getBlock()))
|
||||
continue;
|
||||
|
||||
Player damager = null;
|
||||
double closest = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user