Move Hit inside the Server check

This commit is contained in:
Sofia 2020-08-08 09:22:28 +03:00
parent 6336635e2e
commit e3dfb3aa61

View File

@ -180,8 +180,8 @@ namespace NeonTea.Quakeball.Players {
if (Player != null) { if (Player != null) {
if (Net.Singleton.Instance is Server) { if (Net.Singleton.Instance is Server) {
((Server)Net.Singleton.Instance).SendHit(Player.NetId); ((Server)Net.Singleton.Instance).SendHit(Player.NetId);
Player.Hit();
} }
Player.Hit();
} }
break; break;
} }