Ninja Dash stopping/not working on rails
This commit is contained in:
parent
71f9fd97d6
commit
4085453f0f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user