@quenty/friendutils 12.4.0 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/package.json +7 -7
- package/src/Shared/RxFriendUtils.lua +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [12.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/friendutils@12.4.0...@quenty/friendutils@12.5.0) (2024-09-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Prevent observing friends in server from doing anything while the game is not running in studio ([3e5b46a](https://github.com/Quenty/NevermoreEngine/commit/3e5b46afe8d92207863af0ac6907e6976e3b32b3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [12.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/friendutils@12.3.0...@quenty/friendutils@12.4.0) (2024-08-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/friendutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/friendutils",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.0",
|
|
4
4
|
"description": "Utlity functions to help find friends of a user. Also contains utility to make testing in studio easier.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "^14.
|
|
29
|
-
"@quenty/loader": "^10.
|
|
30
|
-
"@quenty/maid": "^3.
|
|
31
|
-
"@quenty/promise": "^10.
|
|
32
|
-
"@quenty/rx": "^13.
|
|
28
|
+
"@quenty/brio": "^14.5.0",
|
|
29
|
+
"@quenty/loader": "^10.4.0",
|
|
30
|
+
"@quenty/maid": "^3.3.0",
|
|
31
|
+
"@quenty/promise": "^10.4.0",
|
|
32
|
+
"@quenty/rx": "^13.5.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
|
|
38
38
|
}
|
|
@@ -8,6 +8,7 @@ local require = require(script.Parent.loader).load(script)
|
|
|
8
8
|
|
|
9
9
|
local Players = game:GetService("Players")
|
|
10
10
|
local StarterGui = game:GetService("StarterGui")
|
|
11
|
+
local RunService = game:GetService("RunService")
|
|
11
12
|
|
|
12
13
|
local Brio = require("Brio")
|
|
13
14
|
local Maid = require("Maid")
|
|
@@ -87,7 +88,8 @@ function RxFriendUtils.observeFriendsInServerAsBrios(player)
|
|
|
87
88
|
-- There's a non-zero chance these get removed someday... :(
|
|
88
89
|
-- https://devforum.roblox.com/t/playerfriendedevent-was-deleted-from-corescripts/696683
|
|
89
90
|
-- So just incase these connections throw, use a new thread so we don't error out the whole observable.
|
|
90
|
-
|
|
91
|
+
-- Only allow this while the game is running too
|
|
92
|
+
if player == Players.LocalPlayer and RunService:IsRunning() then
|
|
91
93
|
task.spawn(function()
|
|
92
94
|
maid:GiveTask(StarterGui:GetCore("PlayerFriendedEvent").Event:Connect(function(otherPlayer: Player)
|
|
93
95
|
handleFriendState(otherPlayer, true)
|