From 761a244a83a50ffe5e341e513a69db58f7ebd529 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Sun, 4 Jan 2015 13:14:02 -0800 Subject: [PATCH] Fix output of unparsing V1 of the data format --- src/data/minecraft/recipes.json | 2 +- src/scripts/models/mod_version_parser.coffee | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/minecraft/recipes.json b/src/data/minecraft/recipes.json index 8ba6e8f50..7f3057c77 100644 --- a/src/data/minecraft/recipes.json +++ b/src/data/minecraft/recipes.json @@ -73,7 +73,7 @@ "output": [[3, "Black Carpet"]], "input": [[2, "Black Wool"]] }, { - "output": "Black Stained Clay", + "output": [[8, "Black Stained Clay"]], "input": [[8, "Hardened Clay"], "Ink Sac"], "tools": "Crafting Table" }, { diff --git a/src/scripts/models/mod_version_parser.coffee b/src/scripts/models/mod_version_parser.coffee index cb2fd8d06..fbb6ba920 100644 --- a/src/scripts/models/mod_version_parser.coffee +++ b/src/scripts/models/mod_version_parser.coffee @@ -151,9 +151,9 @@ module.exports.V1 = class V1 _unparseModVersion: (modVersion)-> result = [] result.push '{\n' - result.push ' "version": 1,\n' - result.push ' "mod_name": "' + modVersion.name + '",\n' - result.push ' "mod_version": "' + modVersion.version + '",\n' + result.push ' "dataVersion": 1,\n' + result.push ' "name": "' + modVersion.name + '",\n' + result.push ' "version": "' + modVersion.version + '",\n' if modVersion.description.length > 0 result.push ' "description": "' + modVersion.description + '",\n'