Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Miner28 committed Dec 7, 2024
1 parent 1d4bb7d commit c2c3c72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Miner28.UdonUtils.Network
{
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)][DefaultExecutionOrder(Int32.MinValue + 1000000)]
public class NetworkManager : UdonSharpBehaviour
{
const int EventProcessingSpeed = 25;
Expand All @@ -30,14 +30,9 @@ public class NetworkManager : UdonSharpBehaviour
[NonSerialized] public bool networkingActive = true;
[NonSerialized] bool _shouldVoidEvents;

bool _runOnce;


void OnEnable()
void Start()
{
if (_runOnce) return;

_runOnce = true;
if (methodInfos == null)
{
Log("FATAL: MethodInfos is empty, this should never happen. Please report this!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,6 @@ public override void OnDeserialization(DeserializationResult result)
if (_debug) Log($"Empty buffer, (Likely caused by serialization after playerLeft)");
return;
}

if (!_startRun) SetupCaller();

if (networkManager.networkingActive)
{
Expand Down Expand Up @@ -412,8 +410,6 @@ private void SendUdonMethod(NetworkInterface target, int methodTarget, VRCPlayer

internal void _PrepareSend(uint intTarget, string method, uint scriptTarget, DataToken[] data)
{
if (!_startRun) SetupCaller();

SyncTarget target = SyncTarget.All;
SyncChannel syncChannel = (SyncChannel)(-1);
if (intTarget <= 100)
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.10",
"version": "3.2.11",
"displayName": "NetworkedEventCaller",
"description": "A UdonSharp prefab that allows you to call events on other UdonBehaviours across the network with support for parameters.",
"author": {
Expand Down

0 comments on commit c2c3c72

Please sign in to comment.