Fix grenades throwing (#1205)

Exceptions

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-06-25 01:30:39 +10:00
committed by GitHub
parent 63f2724341
commit ee209cd720

View File

@@ -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);