swap 'action' and 'mode' on_inventory_interact arguments & minor refactor

This commit is contained in:
MihailRis 2026-03-16 19:52:24 +03:00
parent 1f7696e972
commit c435c6080a
6 changed files with 75 additions and 41 deletions

View file

@ -108,7 +108,7 @@ namespace scripting {
void on_inventory_open(const Player* player, const Inventory& inventory);
void on_inventory_closed(const Player* player, const Inventory& inventory);
void on_inventory_interact(int invid, int slot, int mode, int action);
void on_inventory_interact(int invid, int slot, int action, int mode);
void on_player_tick(Player* player, int tps);