1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-30 13:50:23 +02:00

creative: Update for compatibility with minetest.creative_is_enabled (#2691)

This commit is contained in:
sfan5
2020-06-07 00:15:35 +02:00
committed by GitHub
parent b1ab8d5123
commit 6d2a897e1b
2 changed files with 16 additions and 9 deletions

View File

@ -93,11 +93,9 @@ For example,
is used to show all tools. Name is used in the sfinv page name, title is the
human readable title.
`is_enabled_for` is used to check whether a player is in creative mode:
creative.is_enabled_for(name)
Override this to allow per-player game modes.
Creative provides `creative.is_enabled_for(name)`, which is identical in
functionality to the engine's `minetest.creative_is_enabled(name)`.
Its use is deprecated and it should also not be overriden.
The contents of `creative.formspec_add` is appended to every creative inventory
page. Mods can use it to add additional formspec elements onto the default