Ninja Dash stopping/not working on rails

This commit is contained in:
Sam 2016-08-01 18:47:17 +01:00
parent 71f9fd97d6
commit 4085453f0f
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package nautilus.game.arcade.kit.perks;
import org.bukkit.Color;
import org.bukkit.FireworkEffect.Type;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
@ -87,7 +88,10 @@ public class PerkDash extends Perk
if (!UtilBlock.airFoliage(newTarget.getBlock()) || !UtilBlock.airFoliage(newTarget.getBlock().getRelative(BlockFace.UP)))
{
break;
if (newTarget.getBlock().getType() != Material.RAILS)
{
break;
}
}
// Progress Forwards