mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-16 16:15:24 +00:00
remove debug message for addon data, addons dev should just do this themselves
This commit is contained in:
parent
59b5e2b957
commit
8cef0f9a6d
@ -11,7 +11,6 @@ public static class AddonDataManager
|
||||
|
||||
public static void OnReceiveDataMessage(int hash, object data, uint from)
|
||||
{
|
||||
DebugLog.DebugWrite($"Received addon message of with hash {hash} from {from}!");
|
||||
if (!_handlers.TryGetValue(hash, out var handler))
|
||||
{
|
||||
DebugLog.DebugWrite($"unknown addon message type with hash {hash}", MessageType.Error);
|
||||
@ -22,7 +21,6 @@ public static class AddonDataManager
|
||||
|
||||
public static void RegisterHandler<T>(int hash, Action<uint, T> handler)
|
||||
{
|
||||
DebugLog.DebugWrite($"Registering addon message handler for hash {hash} with type {typeof(T).Name}");
|
||||
_handlers.Add(hash, (from, data) => handler(from, (T)data));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user