minecraft: avoid duplicate prefix in output file name (#2048)
This commit is contained in:
parent
4b95065c47
commit
2353346768
|
@ -173,7 +173,7 @@ class MinecraftWorld(World):
|
||||||
|
|
||||||
def generate_output(self, output_directory: str) -> None:
|
def generate_output(self, output_directory: str) -> None:
|
||||||
data = self._get_mc_data()
|
data = self._get_mc_data()
|
||||||
filename = f"AP_{self.multiworld.get_out_file_name_base(self.player)}.apmc"
|
filename = f"{self.multiworld.get_out_file_name_base(self.player)}.apmc"
|
||||||
with open(os.path.join(output_directory, filename), 'wb') as f:
|
with open(os.path.join(output_directory, filename), 'wb') as f:
|
||||||
f.write(b64encode(bytes(json.dumps(data), 'utf-8')))
|
f.write(b64encode(bytes(json.dumps(data), 'utf-8')))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue