mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Properly use time_from_last_punch for limiting PvP punch damage
This commit is contained in:
parent
ceaf8edade
commit
4cc117ddf6
5 changed files with 21 additions and 7 deletions
|
@ -2964,7 +2964,8 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
<<pointed.object_id<<std::endl;
|
||||
|
||||
// Do stuff
|
||||
pointed_object->punch(srp);
|
||||
pointed_object->punch(srp, srp->m_time_from_last_punch);
|
||||
srp->m_time_from_last_punch = 0;
|
||||
}
|
||||
|
||||
} // action == 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue