Posted 07 March 2015 - 05:16 PM
Trying to run commands such as /give @p CommandComputer:pocket_computer 1 1 {computerId:1} using a lua table of {computerId=1} produces JSON of {"computerId":1}. This results in the NBT data being stored as "computerId" rather than computerId.
On line 278 of textutils.serializeJSONImpl I think that
should be something like:
On line 278 of textutils.serializeJSONImpl I think that
return string.format( "%q", t )
should be something like:
local sResult = string.format("%q", t)
if sResult == '"' .. t .. '"' then
return t
end
return sResult
Edited on 07 March 2015 - 04:16 PM