Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Miner28 committed Dec 1, 2024
1 parent 3e0b5d8 commit daa57d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,11 @@ public void HandleDeserialization(VRCPlayerApi sender, byte[] dataBuffer)
private void SendUdonMethod(NetworkInterface target, int methodTarget, VRCPlayerApi sender)
{
_targetScript = target;
var methodKey = _methodInfosKeys[methodTarget];
if (!_methodInfosKeys.TryGetValue(methodTarget, out var methodKey))
{
LogError($"FATAL ERROR!! Invalid method target: {methodTarget} - can't send method if method is invalid - {target.name} - MK:{_methodInfosKeys.Count} M:{_methodInfos.Count} - Report to miner28_3");
return;
}
var methodInfo = _methodInfos[methodKey].DataDictionary;

if (methodInfo.TryGetValue("parameters", out var parametersToken))
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.miner28.networkedeventcaller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.miner28.networked-event-caller",
"version": "3.2.5",
"version": "3.2.6",
"displayName": "NetworkedEventCaller",
"description": "A UdonSharp preafab that allows you to call events on other UdonBehaviours across the network with support for parameters.",
"author": {
Expand Down

0 comments on commit daa57d3

Please sign in to comment.