Skip to content

Commit

Permalink
don't show formspec if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Apr 27, 2020
1 parent b48c6c2 commit 73259c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init.lua
Expand Up @@ -22,11 +22,12 @@ minetest.register_on_joinplayer(function (player)
end)

-- command to display server news at any time
--[[
minetest.register_chatcommand("news", {
description = "Shows server news to the player",
func = function (name)
minetest.show_formspec(name, "news", get_formspec())
local fs = get_formspec()
if fs then
minetest.show_formspec(name, "news", fs)
end
end
})
]]

0 comments on commit 73259c2

Please sign in to comment.