@quenty/idleservice 13.6.1 → 13.7.0-canary.478.211e09e.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 CHANGED
@@ -3,9 +3,12 @@
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
- ## [13.6.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@13.6.0...@quenty/idleservice@13.6.1) (2024-07-16)
6
+ # [13.7.0-canary.478.211e09e.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@13.6.0...@quenty/idleservice@13.7.0-canary.478.211e09e.0) (2024-08-27)
7
7
 
8
- **Note:** Version bump only for package @quenty/idleservice
8
+
9
+ ### Features
10
+
11
+ * Handle humanoid tracker not having a value (Happens in studio hot reloading) ([2ebf6d9](https://github.com/Quenty/NevermoreEngine/commit/2ebf6d95a6ffe8563ec315b4cdc0be4d38dbd840))
9
12
 
10
13
 
11
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/idleservice",
3
- "version": "13.6.1",
3
+ "version": "13.7.0-canary.478.211e09e.0",
4
4
  "description": "Helps track whether or not a player is idle and if so, then can show UI or other cute things.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,19 +27,19 @@
27
27
  "Quenty"
28
28
  ],
29
29
  "dependencies": {
30
- "@quenty/baseobject": "^10.3.0",
31
- "@quenty/humanoidtracker": "^13.3.0",
32
- "@quenty/loader": "^10.3.0",
33
- "@quenty/maid": "^3.2.0",
34
- "@quenty/ragdoll": "^15.6.1",
35
- "@quenty/rx": "^13.3.0",
36
- "@quenty/servicebag": "^11.4.0",
37
- "@quenty/statestack": "^14.4.0",
38
- "@quenty/valuebaseutils": "^13.3.0",
39
- "@quenty/valueobject": "^13.3.0"
30
+ "@quenty/baseobject": "10.4.0-canary.478.211e09e.0",
31
+ "@quenty/humanoidtracker": "13.4.0-canary.478.211e09e.0",
32
+ "@quenty/loader": "10.4.0-canary.478.211e09e.0",
33
+ "@quenty/maid": "3.2.0",
34
+ "@quenty/ragdoll": "15.7.0-canary.478.211e09e.0",
35
+ "@quenty/rx": "13.4.0-canary.478.211e09e.0",
36
+ "@quenty/servicebag": "11.5.0-canary.478.211e09e.0",
37
+ "@quenty/statestack": "14.5.0-canary.478.211e09e.0",
38
+ "@quenty/valuebaseutils": "13.4.0-canary.478.211e09e.0",
39
+ "@quenty/valueobject": "13.4.0-canary.478.211e09e.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "d9ffcf779b43c299fbb2dd0bd15d56b83b3e5043"
44
+ "gitHead": "211e09ec811d87f8ad4596230f8ee53f81eb6eaa"
45
45
  }
@@ -34,7 +34,8 @@ function IdleServiceClient:Init(serviceBag)
34
34
 
35
35
  -- External
36
36
  self._serviceBag:GetService(require("RagdollServiceClient"))
37
- self._humanoidTracker = self._serviceBag:GetService(require("HumanoidTrackerService")):GetHumanoidTracker()
37
+ self._serviceBag:GetService(require("HumanoidTrackerService"))
38
+
38
39
  self._ragdollBinder = self._serviceBag:GetService(RagdollClient)
39
40
 
40
41
  -- Configure
@@ -56,16 +57,20 @@ function IdleServiceClient:Start()
56
57
  self:_updateShowIdleUI()
57
58
  end))
58
59
 
59
- self._maid:GiveTask(self._humanoidTracker.AliveHumanoid.Changed:Connect(function(...)
60
- self:_handleAliveHumanoidChanged(...)
61
- end))
62
- self._maid:GiveTask(self._disableStack.Changed:Connect(function()
63
- self._enabled.Value = not self._disableStack:GetState()
64
- end))
65
-
66
- if self._humanoidTracker.AliveHumanoid.Value then
67
- self:_handleAliveHumanoidChanged()
60
+ self._humanoidTracker = self._serviceBag:GetService(require("HumanoidTrackerService")):GetHumanoidTracker()
61
+ if self._humanoidTracker then
62
+ self._maid:GiveTask(self._humanoidTracker.AliveHumanoid.Changed:Connect(function(...)
63
+ self:_handleAliveHumanoidChanged(...)
64
+ end))
65
+ self._maid:GiveTask(self._disableStack.Changed:Connect(function()
66
+ self._enabled.Value = not self._disableStack:GetState()
67
+ end))
68
+
69
+ if self._humanoidTracker.AliveHumanoid.Value then
70
+ self:_handleAliveHumanoidChanged()
71
+ end
68
72
  end
73
+
69
74
  self:_updateShowIdleUI()
70
75
  end
71
76