@quenty/saveslot 2.6.2 → 2.6.3-canary.783.30683606415.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 +2 -2
- package/src/Server/Binders/HasSaveSlots.lua +8 -7
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
|
+
## [2.6.3-canary.783.30683606415.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/saveslot@2.6.2...@quenty/saveslot@2.6.3-canary.783.30683606415.0) (2026-08-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix save slots ([579c587](https://github.com/Quenty/NevermoreEngine/commit/579c587ebfadaedaab91e774f8441d78a8d6fe99))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.6.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/saveslot@2.6.1...@quenty/saveslot@2.6.2) (2026-07-30)
|
|
7
18
|
|
|
8
19
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/saveslot",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3-canary.783.30683606415.0",
|
|
4
4
|
"description": "PlayerDataStoreService wrapper for save slots",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "743de1f5697e2423692d9957b456da9fbdcfb9af"
|
|
61
61
|
}
|
|
@@ -202,13 +202,14 @@ function HasSaveSlots.PromiseSelectSlot(self: HasSaveSlots, slotId: SaveSlotData
|
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
local function promiseSetSlot()
|
|
205
|
-
return self:_promisePreSelectFromSaveSlotService(slotId)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
return self._maid:GivePromise(self:_promisePreSelectFromSaveSlotService(slotId))
|
|
206
|
+
:Then(function(allowed: boolean)
|
|
207
|
+
if not allowed then
|
|
208
|
+
return (Promise :: any).rejected(`Slot \{{slotId}\} refused by a pre-select callback`)
|
|
209
|
+
end
|
|
209
210
|
|
|
210
|
-
|
|
211
|
-
|
|
211
|
+
return setSlot()
|
|
212
|
+
end)
|
|
212
213
|
end
|
|
213
214
|
|
|
214
215
|
-- Initialize or save and switch
|
|
@@ -222,7 +223,7 @@ function HasSaveSlots.PromiseSelectSlot(self: HasSaveSlots, slotId: SaveSlotData
|
|
|
222
223
|
return promiseSetSlot()
|
|
223
224
|
end
|
|
224
225
|
|
|
225
|
-
return self._dataStore:Save():Then(promiseSetSlot)
|
|
226
|
+
return self._maid:GivePromise(self._dataStore:Save()):Then(promiseSetSlot)
|
|
226
227
|
end)
|
|
227
228
|
end
|
|
228
229
|
|