Skip to content

Commit 22c8c6e

Browse files
authored
Pack format key uses underscore instead of dash.
1 parent 89f4be6 commit 22c8c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def main():
252252
os.makedirs(f'.generated/packs/{packName}/data/{packId}/tags/functions', exist_ok = True)
253253
os.makedirs(f'.generated/packs/{packName}/data/{packId}/tags/items', exist_ok = True)
254254
with open(f".generated/packs/{packName}/pack.mcmeta", "w+") as file:
255-
json.dump({"pack":{"pack-format":7 if useSnapshots else 6,"description": packDesc}}, file,indent=4)
255+
json.dump({"pack":{"pack_format":7 if useSnapshots else 6,"description": packDesc}}, file,indent=4)
256256
with open(f".generated/packs/{packName}/data/minecraft/tags/functions/load.json", "w+") as file:
257257
json.dump({"replace": False, "values":[f"{packId}:internal/{initFunction.name}"]}, file,indent=4)
258258
with open(f".generated/packs/{packName}/data/minecraft/tags/functions/tick.json", "w+") as file:
@@ -274,4 +274,4 @@ def main():
274274
main()
275275
#tags.start()
276276
#convert.start()
277-
#regex_test.start()
277+
#regex_test.start()

0 commit comments

Comments
 (0)