diff --git a/builtin/chatcommands.lua b/builtin/chatcommands.lua index 9f55f1afc..f25a276ea 100644 --- a/builtin/chatcommands.lua +++ b/builtin/chatcommands.lua @@ -215,8 +215,8 @@ minetest.register_chatcommand("clearpassword", { privs = {password=true}, func = function(name, param) toname = param - if not toname then - minetest.chat_send_player(toname, "Name field required") + if toname == "" then + minetest.chat_send_player(name, "Name field required") return end minetest.set_player_password(toname, '') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 301832618..0c093b7ee 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1,4 +1,4 @@ -Minetest Lua Modding API Reference 0.4.0 +Minetest Lua Modding API Reference 0.4.3 ========================================== More information at http://c55.me/minetest/ @@ -694,6 +694,11 @@ image[,;,;] ^ Show an image ^ Position and size units are inventory slots +background[,;,;] +^ Use a background. Inventory rectangles are not drawn then. +^ Position and size units are inventory slots +^ Example for formspec 8x4 in 16x resolution: image shall be sized 8*16px x 4*16px + field[,;,;;