Fix output of unparsing V1 of the data format
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
"output": [[3, "Black Carpet"]],
|
"output": [[3, "Black Carpet"]],
|
||||||
"input": [[2, "Black Wool"]]
|
"input": [[2, "Black Wool"]]
|
||||||
}, {
|
}, {
|
||||||
"output": "Black Stained Clay",
|
"output": [[8, "Black Stained Clay"]],
|
||||||
"input": [[8, "Hardened Clay"], "Ink Sac"],
|
"input": [[8, "Hardened Clay"], "Ink Sac"],
|
||||||
"tools": "Crafting Table"
|
"tools": "Crafting Table"
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -151,9 +151,9 @@ module.exports.V1 = class V1
|
|||||||
_unparseModVersion: (modVersion)->
|
_unparseModVersion: (modVersion)->
|
||||||
result = []
|
result = []
|
||||||
result.push '{\n'
|
result.push '{\n'
|
||||||
result.push ' "version": 1,\n'
|
result.push ' "dataVersion": 1,\n'
|
||||||
result.push ' "mod_name": "' + modVersion.name + '",\n'
|
result.push ' "name": "' + modVersion.name + '",\n'
|
||||||
result.push ' "mod_version": "' + modVersion.version + '",\n'
|
result.push ' "version": "' + modVersion.version + '",\n'
|
||||||
if modVersion.description.length > 0
|
if modVersion.description.length > 0
|
||||||
result.push ' "description": "' + modVersion.description + '",\n'
|
result.push ' "description": "' + modVersion.description + '",\n'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user