// old code from the past private void DumpNoPath(Vec target) { var all = whatToFill.Cast <bool>().Count(b => b); var done = Commands.Count(c => c is Fill); var bytes = CommandSerializer.Save(Commands.ToArray()); File.WriteAllBytes($@"c:\temp\020_.nbt", bytes); var s = ""; for (int y = 0; y < R; y++) { for (int z = 0; z < R; z++) { for (int x = R - 1; x >= 0; x--) { s += state.Get(new Vec(x, y, z)) ? "X" : "."; } s += "\r\n"; } s += "===r\n"; } File.WriteAllText(@"c:\1.txt", s); throw new InvalidOperationException($"Couldn't find path from {pos} to {target}; all={all}; done={done}; Commands.Count={Commands.Count}; {string.Join("; ", Commands.Take(20))}"); }