Unify wield item handling (#8677)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Wed, 7 Aug 2019 17:16:31 +0000 (19:16 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2019 17:16:31 +0000 (19:16 +0200)
commite462a9a5ef46776d974203bb44e0b89e8c980b29
tree4562ef5587bd896890d843877031d5818de19bbc
parent003af7421352ec1b8ba0d230b807862e1e4cc7e9
Unify wield item handling (#8677)

This moves the wield item functions to Player and the tool utils for range calculation
Also 'local_inventory' was removed due to redundancy in Client
14 files changed:
src/client/client.cpp
src/client/client.h
src/client/game.cpp
src/client/render/core.cpp
src/content_sao.cpp
src/content_sao.h
src/network/serverpackethandler.cpp
src/player.cpp
src/player.h
src/script/lua_api/l_client.cpp
src/script/lua_api/l_object.cpp
src/serverobject.h
src/tool.cpp
src/tool.h