mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
turns out windows' built in zip hates LZMA
also fix APMC output path
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Dict, Set
|
||||
import os
|
||||
|
||||
|
||||
from .Items import MinecraftItem, item_table, item_frequencies
|
||||
@@ -81,11 +81,10 @@ class MinecraftWorld(World):
|
||||
def generate_output(self, output_directory: str):
|
||||
import json
|
||||
from base64 import b64encode
|
||||
from Utils import output_path
|
||||
|
||||
data = self._get_mc_data()
|
||||
filename = f"AP_{self.world.seed_name}_P{self.player}_{self.world.get_player_names(self.player)}.apmc"
|
||||
with open(output_path(filename), 'wb') as f:
|
||||
with open(os.path.join(output_directory, filename), 'wb') as f:
|
||||
f.write(b64encode(bytes(json.dumps(data), 'utf-8')))
|
||||
|
||||
def fill_slot_data(self):
|
||||
|
Reference in New Issue
Block a user