Add note about what Tombstones do and don't do

This commit is contained in:
Lucas Nicodemus 2020-05-23 23:47:50 -07:00
parent 38fb33feb8
commit 37e65b64dc
No known key found for this signature in database
GPG key ID: A07BD9023D1664DB

View file

@ -865,7 +865,6 @@ namespace TShockAPI
return;
}
if (stabProjectile.ContainsKey(type))
{
if (stabProjectile[type] == args.Player.TPlayer.HeldItem.type)
@ -875,7 +874,6 @@ namespace TShockAPI
}
}
// Main.projHostile contains projectiles that can harm players
// without PvP enabled and belong to enemy mobs, so they shouldn't be
// possible for players to create. (Source: Ijwu, QuiCM)
@ -888,6 +886,8 @@ namespace TShockAPI
}
// Tombstones should never be permitted by players
// This check means like, invalid or hacked tombstones (sent from hacked clients)
// Death does not create a tombstone projectile by default
if (type == ProjectileID.Tombstone)
{
TShock.Log.ConsoleDebug("Bouncer / OnNewProjectile rejected from tombstones from {0}", args.Player.Name);