From 23abf927223b6e220f5015553e5f903536259bd8 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 3 Apr 2015 19:37:27 +1300 Subject: [PATCH] IcePathData: Compare Material instead of integers --- .../src/nautilus/game/arcade/kit/perks/data/IcePathData.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/kit/perks/data/IcePathData.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/kit/perks/data/IcePathData.java index b308da2e1..9375879d6 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/kit/perks/data/IcePathData.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/kit/perks/data/IcePathData.java @@ -5,6 +5,7 @@ import java.util.ArrayList; import mineplex.core.common.util.UtilMath; import org.bukkit.Location; +import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.util.Vector; @@ -76,10 +77,10 @@ public class IcePathData loc.add(dir.clone().multiply(0.2)); - if (loc.getBlock().getTypeId() == 79) + if (loc.getBlock().getType() == Material.ICE) continue; - if (loc.getBlock().getTypeId() == 0 || loc.getBlock().getTypeId() == 78) + if (loc.getBlock().getType() == Material.AIR || loc.getBlock().getType() == Material.SNOW) { if (!_blocks.contains(loc.getBlock())) {