Cleanup
This commit is contained in:
parent
229d2bf990
commit
95d04d98c3
1 changed files with 5 additions and 1 deletions
|
|
@ -2493,7 +2493,9 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
if (id >= Main.maxPlayers)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (OnKillMe(id, direction, dmg, pvp))
|
||||
return true;
|
||||
|
|
@ -2987,7 +2989,9 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
if (id >= Main.maxPlayers || TShock.Players[id] == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (dmg > TShock.Config.MaxDamage && !args.Player.Group.HasPermission(Permissions.ignoredamagecap) && id != args.Player.Index)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue