Skip to content

Commit

Permalink
chore: Add registered callback tables to minetest builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu authored and alerque committed May 18, 2024
1 parent 52d809e commit 494b0f1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/luacheck/builtin_standards/minetest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,40 @@ local minetest = {
register_on_modchannel_message = empty,
register_on_liquid_transformed = empty,
register_on_mapblocks_changed = empty,
-- ... and corresponding callback tables
registered_on_chat_messages = open_table,
registered_on_chatcommands = open_table,
registered_globalsteps = open_table,
registered_on_mods_loaded = open_table,
registered_on_shutdown = open_table,
registered_on_punchnodes = open_table,
registered_on_placenodes = open_table,
registered_on_dignodes = open_table,
registered_on_generateds = open_table,
registered_on_newplayers = open_table,
registered_on_dieplayers = open_table,
registered_on_respawnplayers = open_table,
registered_on_prejoinplayers = open_table,
registered_on_joinplayers = open_table,
registered_on_leaveplayers = open_table,
registered_on_player_receive_fields = open_table,
registered_on_cheats = open_table,
registered_on_crafts = open_table,
registered_craft_predicts = open_table,
registered_on_protection_violation = open_table,
registered_on_item_eats = open_table,
registered_on_item_pickups = open_table,
registered_on_punchplayers = open_table,
registered_on_priv_grant = open_table,
registered_on_priv_revoke = open_table,
registered_on_authplayers = open_table,
registered_can_bypass_userlimit = open_table,
registered_on_modchannel_message = open_table,
registered_on_player_inventory_actions = open_table,
registered_allow_player_inventory_actions = open_table,
registered_on_rightclickplayers = open_table,
registered_on_liquid_transformed = open_table,
registered_on_mapblocks_changed = open_table,

-- Setting-related
settings = standards.def_fields("get", "get_bool", "get_np_group", "get_flags", "set", "set_bool",
Expand Down

0 comments on commit 494b0f1

Please sign in to comment.