This commit is contained in:
2022-05-08 10:00:00 +04:00
parent c916358728
commit 02a04df21f
+2 -2
View File
@@ -113,12 +113,12 @@ namespace Ragon.Core
_buffer.Clear();
_buffer.FromSpan(ref raw, raw.Length);
data.Deserialize(_buffer);
action.Invoke(player, ent.EntityId, data);
action.Invoke(player, ent, data);
});
}
}
public void Subscribe(Entity entity, ushort evntCode, Action<Player, Entity> action) where T : IRagonSerializable, new()
public void Subscribe(Entity entity, ushort evntCode, Action<Player, Entity> action)
{
if (_entityEvents.ContainsKey(entity.EntityId))
{