@quenty/racketingropeconstraint 12.6.0 → 12.7.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,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.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/racketingropeconstraint@12.6.0...@quenty/racketingropeconstraint@12.7.0) (2024-09-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Unedited all changes ([60e64e3](https://github.com/Quenty/NevermoreEngine/commit/60e64e3efce17c10c4b8965871187d231b338dd4))
12
+
13
+
14
+
15
+
16
+
6
17
  # [12.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/racketingropeconstraint@12.5.0...@quenty/racketingropeconstraint@12.6.0) (2024-08-09)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/racketingropeconstraint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/racketingropeconstraint",
3
- "version": "12.6.0",
3
+ "version": "12.7.0",
4
4
  "description": "Tries to racket a rope constraint back down to a reasonable length",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,16 +27,16 @@
27
27
  "Quenty"
28
28
  ],
29
29
  "dependencies": {
30
- "@quenty/baseobject": "^10.3.0",
31
- "@quenty/binder": "^14.5.0",
32
- "@quenty/loader": "^10.3.0",
33
- "@quenty/overriddenproperty": "^10.4.0",
34
- "@quenty/promise": "^10.3.0",
35
- "@quenty/tie": "^10.6.0",
36
- "@quenty/valueobject": "^13.4.0"
30
+ "@quenty/baseobject": "^10.4.0",
31
+ "@quenty/binder": "^14.6.0",
32
+ "@quenty/loader": "^10.4.0",
33
+ "@quenty/overriddenproperty": "^10.5.0",
34
+ "@quenty/promise": "^10.4.0",
35
+ "@quenty/tie": "^10.7.0",
36
+ "@quenty/valueobject": "^13.5.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "ba466bdbc05c42fb607cf5e228c16339201d21d7"
41
+ "gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
42
42
  }
@@ -13,6 +13,7 @@ local OverriddenProperty = require("OverriddenProperty")
13
13
  local Promise = require("Promise")
14
14
  local RacketingRopeConstraintInterface = require("RacketingRopeConstraintInterface")
15
15
  local ValueObject = require("ValueObject")
16
+ local TieRealmService = require("TieRealmService")
16
17
 
17
18
  local START_DISTANCE = 1000
18
19
 
@@ -20,9 +21,12 @@ local RacketingRopeConstraint = setmetatable({}, BaseObject)
20
21
  RacketingRopeConstraint.ClassName = "RacketingRopeConstraint"
21
22
  RacketingRopeConstraint.__index = RacketingRopeConstraint
22
23
 
23
- function RacketingRopeConstraint.new(ropeConstraint)
24
+ function RacketingRopeConstraint.new(ropeConstraint, serviceBag)
24
25
  local self = setmetatable(BaseObject.new(ropeConstraint), RacketingRopeConstraint)
25
26
 
27
+ self._serviceBag = assert(serviceBag, "No serviceBag")
28
+ self._tieRealmService = self._serviceBag:GetService(TieRealmService)
29
+
26
30
  self._smallestDistance = START_DISTANCE
27
31
  self._targetDistance = 0.5
28
32
 
@@ -46,7 +50,7 @@ function RacketingRopeConstraint.new(ropeConstraint)
46
50
  self._maid:GiveTask(self._overriddenLength)
47
51
  end
48
52
 
49
- self._maid:GiveTask(RacketingRopeConstraintInterface:Implement(self._obj, self))
53
+ self._maid:GiveTask(RacketingRopeConstraintInterface:Implement(self._obj, self, self._tieRealmService:GetTieRealm()))
50
54
 
51
55
  return self
52
56
  end