Log the book content

This commit is contained in:
kilbith 2015-02-20 18:00:25 +01:00 committed by Vanessa Ezekowitz
parent 49eacb7726
commit 280c4a732b

View File

@ -1359,6 +1359,8 @@ minetest.register_on_player_receive_fields(function(player, form_name, fields)
fields.title, fields.text, player:get_player_name()
stack:set_metadata(minetest.serialize(data))
player:set_wielded_item(stack)
minetest.log("action", player:get_player_name().." has written in a book (title: \""..fields.title.."\"): \""..fields.text..
"\" at location: "..minetest.pos_to_string(player:getpos()))
end)
homedecor.register("calendar", {