Add note about what Tombstones do and don't do
This commit is contained in:
parent
38fb33feb8
commit
37e65b64dc
1 changed files with 2 additions and 2 deletions
|
|
@ -865,7 +865,6 @@ namespace TShockAPI
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (stabProjectile.ContainsKey(type))
|
if (stabProjectile.ContainsKey(type))
|
||||||
{
|
{
|
||||||
if (stabProjectile[type] == args.Player.TPlayer.HeldItem.type)
|
if (stabProjectile[type] == args.Player.TPlayer.HeldItem.type)
|
||||||
|
|
@ -875,7 +874,6 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Main.projHostile contains projectiles that can harm players
|
// Main.projHostile contains projectiles that can harm players
|
||||||
// without PvP enabled and belong to enemy mobs, so they shouldn't be
|
// without PvP enabled and belong to enemy mobs, so they shouldn't be
|
||||||
// possible for players to create. (Source: Ijwu, QuiCM)
|
// possible for players to create. (Source: Ijwu, QuiCM)
|
||||||
|
|
@ -888,6 +886,8 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tombstones should never be permitted by players
|
// 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)
|
if (type == ProjectileID.Tombstone)
|
||||||
{
|
{
|
||||||
TShock.Log.ConsoleDebug("Bouncer / OnNewProjectile rejected from tombstones from {0}", args.Player.Name);
|
TShock.Log.ConsoleDebug("Bouncer / OnNewProjectile rejected from tombstones from {0}", args.Player.Name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue