mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Improve mobv2
This commit is contained in:
parent
43a28f04fa
commit
5341bf59c2
11 changed files with 221 additions and 78 deletions
|
@ -2340,7 +2340,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
v3f objpos = obj->getBasePosition();
|
||||
v3f dir = (objpos - playerpos).normalize();
|
||||
|
||||
u16 wear = obj->punch(toolname, dir);
|
||||
u16 wear = obj->punch(toolname, dir, player->getName());
|
||||
|
||||
if(titem)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue