Skip to content

Commit

Permalink
Fix trivial get_armor_groups documentation issue (minetest#12760)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Sep 12, 2022
1 parent bc3dccc commit 482cc99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/lua_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1783,8 +1783,8 @@ For entities, groups are, as of now, used only for calculating damage.
The rating is the percentage of damage caused by items with this damage group.
See [Entity damage mechanism].

object.get_armor_groups() --> a group-rating table (e.g. {fleshy=100})
object.set_armor_groups({fleshy=30, cracky=80})
object:get_armor_groups() --> a group-rating table (e.g. {fleshy=100})
object:set_armor_groups({fleshy=30, cracky=80})

Groups of tool capabilities
---------------------------
Expand Down

0 comments on commit 482cc99

Please sign in to comment.