Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down