From ee1440c7cd03797c0202ff2601fa7140243191d1 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Wed, 6 Nov 2013 15:44:08 +0100
Subject: [PATCH] ploppy

---
 game/modules/tome/class/interface/PlayerDumpJSON.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/game/modules/tome/class/interface/PlayerDumpJSON.lua b/game/modules/tome/class/interface/PlayerDumpJSON.lua
index 5fc583f2c9..7693479768 100644
--- a/game/modules/tome/class/interface/PlayerDumpJSON.lua
+++ b/game/modules/tome/class/interface/PlayerDumpJSON.lua
@@ -48,7 +48,7 @@ function _M:dumpToJSON(js, bypass, nosub)
 
 	local addons = {}
 	for name, add in pairs(game.__mod_info.addons) do
-		addons[#addons+1] = ("%s %d.%d.%d"):format(add.long_name, add.version[1], add.version[2], add.version[3])
+		addons[add.short_name] = ("%s %d.%d.%d"):format(add.long_name, add.version[1], add.version[2], add.version[3])
 	end
 
 	js:newSection("character", {
@@ -421,7 +421,7 @@ function _M:dumpToJSON(js, bypass, nosub)
 		addons[#addons+1] = add.short_name
 	end
 	if #addons > 0 then
-		tags.addons = addons
+		tags.addon = addons
 	end
 
 	if self.has_custom_tile then
-- 
GitLab