From b2930018fda18ef2568414cc0555eacddaf80c2e Mon Sep 17 00:00:00 2001 From: tatuharu Date: Fri, 15 Jul 2022 10:52:36 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E3=83=A1=E3=83=A2=E3=83=AA?= =?UTF-8?q?=E3=83=BB=E5=87=A6=E7=90=86=E9=80=9F=E5=BA=A6=E3=82=92=E5=A4=A7?= =?UTF-8?q?=E5=B9=85=E3=81=AB=E5=90=91=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- find_block.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/find_block.py b/find_block.py index 2a17fba..8718521 100644 --- a/find_block.py +++ b/find_block.py @@ -154,6 +154,9 @@ def _find_block(self): print("X:" + str(x) + " Y:" + str(y) + " Z:" + str(z) + " " + dimension) file_out_list.append((str(x), str(y), str(z), dimension)) + if count % 1000 == 0: + world.unload_unchanged() + count += 1 yield count / chunk_count