Make XY grid cancellation much faster

This commit is contained in:
space-nuko 2023-01-15 19:43:34 -08:00
parent ff6a5bcec1
commit f202ff1901
1 changed files with 3 additions and 0 deletions

View File

@ -406,6 +406,9 @@ class Script(scripts.Script):
grid_infotext = [None]
def cell(x, y):
if shared.state.interrupted:
return Processed(p, [], p.seed, "")
pc = copy(p)
x_opt.apply(pc, x, xs)
y_opt.apply(pc, y, ys)