]> git.lizzy.rs Git - dragonfireclient.git/commit
Fix inventory swapping not calling all callbacks (#9923)
authorLars Müller <34514239+appgurueu@users.noreply.github.com>
Fri, 4 Sep 2020 18:49:07 +0000 (20:49 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Sep 2020 18:49:07 +0000 (20:49 +0200)
commit050964bed6005f8d816ddf362b9fc8675581d190
tree3229276c2c989597da4a052aa67373c8b887accb
parent4ba5046308d6bdf7b38394770c6f82b6927393f2
Fix inventory swapping not calling all callbacks (#9923)

"Predicts" whether something will be swapped for allow callbacks, then calls callbacks a second time with swapped properties.

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
doc/lua_api.txt
src/inventory.cpp
src/inventorymanager.cpp
src/inventorymanager.h