@quenty/mouseshiftlockservice 7.0.0 → 7.0.1

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
+ ## [7.0.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/mouseshiftlockservice@7.0.0...@quenty/mouseshiftlockservice@7.0.1) (2022-10-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * MouseShiftLockService has better errors ([03ee1fb](https://github.com/Quenty/NevermoreEngine/commit/03ee1fbc10ad4bd3c54abca9dc86af29ed14e9a8))
12
+
13
+
14
+
15
+
16
+
6
17
  # [7.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/mouseshiftlockservice@6.0.1...@quenty/mouseshiftlockservice@7.0.0) (2022-09-27)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/mouseshiftlockservice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/mouseshiftlockservice",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Utility service to enable or disable mouse shift lock on the fly on Roblox.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "cbbe2a3e91f0d1e337bb33652b4e32bec685bb76"
36
+ "gitHead": "5fc8df6d4a62c0c774ebc78b275898f7f383935b"
37
37
  }
@@ -27,6 +27,8 @@ MouseShiftLockService.ServiceName = "MouseShiftLockService"
27
27
  ]=]
28
28
 
29
29
  function MouseShiftLockService:Init()
30
+ assert(self ~= MouseShiftLockService, "Call via serviceBag")
31
+ assert(not self._enabled, "Not enabled")
30
32
  self._enabled = Instance.new("BoolValue")
31
33
  self._enabled.Value = true
32
34
 
@@ -78,6 +80,9 @@ end
78
80
  Enables mouse shift lock
79
81
  ]=]
80
82
  function MouseShiftLockService:EnableShiftLock()
83
+ assert(self ~= MouseShiftLockService, "Call via serviceBag")
84
+ assert(self._enabled, "Not enabled")
85
+
81
86
  self._enabled.Value = true
82
87
  end
83
88
 
@@ -86,6 +91,9 @@ end
86
91
  ]=]
87
92
 
88
93
  function MouseShiftLockService:DisableShiftLock()
94
+ assert(self ~= MouseShiftLockService, "Call via serviceBag")
95
+ assert(self._enabled, "Not enabled")
96
+
89
97
  self._enabled.Value = false
90
98
  end
91
99