API doc: minor correction

master^2
Jean-Patrick Guerrero 2022-03-23 03:52:08 +01:00
parent 44a6256589
commit 7e0feefc89
1 changed files with 1 additions and 3 deletions

4
API.md
View File

@ -17,9 +17,7 @@ i3.new_tab("stuff", {
-- Determine if the tab is visible by a player, `false` or `nil` hide the tab
access = function(player, data)
local name = player:get_player_name()
if name == "singleplayer" then
return false
end
return name == "singleplayer"
end,
formspec = function(player, data, fs)