mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
swap 'action' and 'mode' on_inventory_interact arguments & minor refactor
This commit is contained in:
parent
1f7696e972
commit
c435c6080a
6 changed files with 75 additions and 41 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
```
|
||||
|
||||
Вызывается при взаимодействии игрока с любым слотом
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue