Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add feature table entry for new dynamic media API
  • Loading branch information
sfan5 committed Sep 19, 2021
1 parent ad076ed commit 16a6242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions builtin/game/features.lua
Expand Up @@ -21,6 +21,7 @@ core.features = {
use_texture_alpha_string_modes = true,
degrotate_240_steps = true,
abm_min_max_y = true,
dynamic_add_media_table = true,
}

function core.has_feature(arg)
Expand Down
2 changes: 2 additions & 0 deletions doc/lua_api.txt
Expand Up @@ -4567,6 +4567,8 @@ Utilities
degrotate_240_steps = true,
-- ABM supports min_y and max_y fields in definition (5.5.0)
abm_min_max_y = true,
-- dynamic_add_media supports passing a table with options (5.5.0)
dynamic_add_media_table = true,
}

* `minetest.has_feature(arg)`: returns `boolean, missing_features`
Expand Down

0 comments on commit 16a6242

Please sign in to comment.