Skip to content

Commit

Permalink
Removed playroom.OnDisconnect()
Browse files Browse the repository at this point in the history
  • Loading branch information
momintlh committed Jan 21, 2024
1 parent aa3418e commit 283accd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Assets/Plugins/PlayroomPlugin.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ mergeInto(LibraryManager.library, {
});
});

Playroom.onDisconnect(() => {
dynCall("v", onDisconnectCallback, []);
});

})
.catch((error) => {
console.error("Error inserting coin:", error);
Expand Down Expand Up @@ -718,7 +714,7 @@ mergeInto(LibraryManager.library, {
}

const players = window._multiplayer.getPlayers();


if (typeof players !== "object" || players === null) {
console.error('The "players" variable is not an object:', players);
Expand Down

0 comments on commit 283accd

Please sign in to comment.