creative: Update for compatibility with minetest.creative_is_enabled (#2691)
This commit is contained in:
parent
b1ab8d5123
commit
6d2a897e1b
2 changed files with 16 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue