From 02a04df21fbe334b94c73da0ba8d1d8637d02873 Mon Sep 17 00:00:00 2001 From: Edmand46 Date: Sun, 8 May 2022 10:00:00 +0400 Subject: [PATCH] wip --- Ragon/Sources/Plugin/PluginBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ragon/Sources/Plugin/PluginBase.cs b/Ragon/Sources/Plugin/PluginBase.cs index 028d420..36246cc 100755 --- a/Ragon/Sources/Plugin/PluginBase.cs +++ b/Ragon/Sources/Plugin/PluginBase.cs @@ -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 action) where T : IRagonSerializable, new() + public void Subscribe(Entity entity, ushort evntCode, Action action) { if (_entityEvents.ContainsKey(entity.EntityId)) {