1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Add new hotbar_slot_selected lua callback

This commit is contained in:
Zenon Seth 2025-05-13 14:31:13 +01:00
parent 1f9a3b5875
commit 7425126f6b
8 changed files with 169 additions and 2 deletions

View file

@ -618,6 +618,7 @@ core.registered_allow_player_inventory_actions, core.register_allow_player_inven
core.registered_on_rightclickplayers, core.register_on_rightclickplayer = make_registration()
core.registered_on_liquid_transformed, core.register_on_liquid_transformed = make_registration()
core.registered_on_mapblocks_changed, core.register_on_mapblocks_changed = make_registration()
core.registered_on_hotbar_slot_selected, core.register_on_hotbar_slot_selected = make_registration()
-- A bunch of registrations are read by the C++ side once on env init, so we cannot
-- allow them to change afterwards (see s_env.cpp).