From cd0eb2d5c48661d8222aae54ba38e6ca8e7d95b1 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Fri, 17 Mar 2017 14:57:22 +0100 Subject: [PATCH] genpoi: query fs caps before using FileReplacer Probably fixes #1271 --- overviewer_core/aux_files/genPOI.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/overviewer_core/aux_files/genPOI.py b/overviewer_core/aux_files/genPOI.py index aaa56f7..0fc5b8b 100755 --- a/overviewer_core/aux_files/genPOI.py +++ b/overviewer_core/aux_files/genPOI.py @@ -34,7 +34,7 @@ from optparse import OptionParser from overviewer_core import logger from overviewer_core import nbt from overviewer_core import configParser, world -from overviewer_core.files import FileReplacer +from overviewer_core.files import FileReplacer, get_fs_caps UUID_LOOKUP_URL = 'https://sessionserver.mojang.com/session/minecraft/profile/' @@ -236,8 +236,9 @@ class PlayerDict(dict): @classmethod def save_cache(cls, outputdir): cache_file = os.path.join(outputdir, "uuidcache.dat") + caps = get_fs_caps(outputdir) - with FileReplacer(cache_file) as cache_file_name: + with FileReplacer(cache_file, caps) as cache_file_name: with closing(gzip.GzipFile(cache_file_name, "wb")) as gz: json.dump(cls.uuid_cache, gz) logging.info("Wrote UUID cache with %d entries",