Skip to content

Commit

Permalink
Fix Map Explode (#2482)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Mar 24, 2024
1 parent 1a84c79 commit 6285f78
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Exiled.API/Features/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,9 @@ public static void Explode(Vector3 position, ProjectileType projectileType, Play
attacker ??= Server.Host;
if (!InventoryItemLoader.TryGetItem(item, out ThrowableItem throwableItem))
return;
ExplosionUtils.ServerSpawnEffect(position, item);

if (throwableItem.Projectile is ExplosionGrenade explosionGrenade)
ExplosionGrenade.Explode(attacker.Footprint, position, explosionGrenade);
if (throwableItem.Projectile is TimeGrenade timedGrenadePickup)
timedGrenadePickup.ServerFuseEnd();
}

/// <summary>
Expand Down

0 comments on commit 6285f78

Please sign in to comment.