mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix player double damage
This commit is contained in:
parent
c357985135
commit
2dc9a0c724
5 changed files with 11 additions and 3 deletions
|
@ -566,7 +566,9 @@ void Client::step(float dtime)
|
|||
if(m_ignore_damage_timer <= 0)
|
||||
{
|
||||
u8 damage = event.player_damage.amount;
|
||||
sendDamage(damage);
|
||||
|
||||
if(event.player_damage.send_to_server)
|
||||
sendDamage(damage);
|
||||
|
||||
// Add to ClientEvent queue
|
||||
ClientEvent event;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue