mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
minecraft: avoid duplicate prefix in output file name (#2048)
This commit is contained in:
@@ -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')))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user