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

@ -222,7 +222,7 @@ function on_hud_close(playerid: int)
Called on world close (before saving)
```lua
function on_inventory_interact(invid: int, slot: int, mode: int, action: int)
function on_inventory_interact(invid: int, slot: int, action: int, mode: int)
```
Triggered when a player interacts with inventory slots.

View file

@ -231,7 +231,7 @@ function on_hud_close(playerid: int)
Вызывается при выходе из мира, перед его сохранением.
```lua
function on_inventory_interact(invid: int, slot: int, mode: int, action: int)
function on_inventory_interact(invid: int, slot: int, action: int, mode: int)
```
Вызывается при взаимодействии игрока с любым слотом