From 37e65b64dc5038006b4fa86e32815c5959095336 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 23 May 2020 23:47:50 -0700 Subject: [PATCH] Add note about what Tombstones do and don't do --- TShockAPI/Bouncer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 6fa88feb..e9281983 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -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);