Apply suggestions from code review

Co-authored-by: Lucas Nicodemus <shank@shanked.me>
This commit is contained in:
Zack 2020-05-24 04:19:00 -04:00 committed by GitHub
parent 3b0c5f7775
commit 9209ac0b73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -1303,7 +1303,7 @@ namespace TShockAPI
}
bool wasThereABombNearby = false;
// The +/- 16 is compensation for maximum detonation distance, but it might be possible to drop to 5 and be conservative
lock (args.Player.RecentlyCreatedProjectiles)
{
var keys = projectileCreatesLiquid.Where(k => k.Value == type).Select(k => k.Key);

View file

@ -765,8 +765,8 @@ namespace TShockAPI
public int LastKilledProjectile = 0;
/// <summary>
/// Keeps track of recently created projectiles by this player. TShock.cs OnSecondUpdate() removes from this in an async task.
/// Projectiles older than 5 seconds are purged from this collection as they are no longer "recent".
/// Keeps track of recently created projectiles by this player. TShock.cs OnSecondUpdate() removes from this in an async task.
/// Projectiles older than 5 seconds are purged from this collection as they are no longer "recent."
/// </summary>
internal List<TShockAPI.GetDataHandlers.ProjectileStruct> RecentlyCreatedProjectiles = new List<TShockAPI.GetDataHandlers.ProjectileStruct>();