From 7e0feefc895950abfba9bf973688211354eb0776 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Wed, 23 Mar 2022 03:52:08 +0100 Subject: [PATCH] API doc: minor correction --- API.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/API.md b/API.md index 20a30be..351f03f 100644 --- a/API.md +++ b/API.md @@ -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)