From 5d851b964df067e1d778a5195e9d09e8ed1a88d1 Mon Sep 17 00:00:00 2001 From: Eli Carter Date: Fri, 22 May 2020 12:20:44 -0500 Subject: [PATCH] Fix book description to include owner --- commands.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.lua b/commands.lua index 53b2705..4428670 100644 --- a/commands.lua +++ b/commands.lua @@ -444,11 +444,11 @@ basic_robot.commands.write_book = function(name,title,text) -- returns itemstack local data = {} if title == "" or not title then title = "program book "..minetest.get_gametime() end - data.title = title or "" + data.title = title data.text = text or "" data.text_len = #data.text data.page = 1 - data.description = title or "" + data.description = "\""..title.."\" by "..name data.page_max = math.ceil((#data.text:gsub("[^\n]", "") + 1) / lpp) data.owner = name --local data_str = minetest.serialize(data) -- pre 0.4.16