public void PrintPath(Level level) { if (Config.GetProperty("Pathfinder.PrintPath", false)) { foreach (var tile in Current) { Block block = GetBlock(tile); Color color = Color.FromArgb(Math.Max(0, 255 - Current.Count * 10), 255, 255); var particle = new DustParticle(level, color); particle.Position = (Vector3)block.Coordinates + new Vector3(0.5f, 0.5f, 0.5f); particle.Spawn(); } } }