Fix grenades throwing (#1205)

Exceptions

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-06-24 17:30:39 +02:00
committed by GitHub
co-authored by Metal Gear Sloth
parent 63f2724341
commit ee209cd720
@@ -408,7 +408,7 @@ namespace Content.Server.GameObjects
{
foreach (var entity in slot.ContainedEntities)
{
var exActs = entity.GetAllComponents<IExAct>();
var exActs = entity.GetAllComponents<IExAct>().ToList();
foreach (var exAct in exActs)
{
exAct.OnExplosion(eventArgs);