mirror of
https://github.com/minetest-mods/i3.git
synced 2025-07-04 01:20:23 +02:00
API doc: minor correction
This commit is contained in:
4
API.md
4
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
|
-- Determine if the tab is visible by a player, `false` or `nil` hide the tab
|
||||||
access = function(player, data)
|
access = function(player, data)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
if name == "singleplayer" then
|
return name == "singleplayer"
|
||||||
return false
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
|
|
||||||
formspec = function(player, data, fs)
|
formspec = function(player, data, fs)
|
||||||
|
Reference in New Issue
Block a user