Skip to content

Commit be58749

Browse files
authored
Bump JaylyDB to 1.1.3
* Update index.js * Update index.ts * Update index.js
1 parent 0de2f8e commit be58749

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/jaylydb/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var _a;
2424
* IN THE SOFTWARE.
2525
*/
2626
import { ScoreboardIdentityType, system, world } from "@minecraft/server";
27-
const version = "1.1.2";
27+
const version = "1.1.3";
2828
const str = () => ('00000000000000000' + (Math.random() * 0xffffffffffffffff).toString(16)).slice(-16);
2929
/**
3030
* A rough mechanism for create a random uuid. Not as secure as uuid without as much of a guarantee of uniqueness,
@@ -215,6 +215,9 @@ class JaylyDB {
215215
if (encoded.length > 32767)
216216
throw new RangeError("JaylyDB::set only accepts a string value less than 32767 characters.");
217217
// push change to disk
218+
const participant = this.localState.get(key);
219+
if (participant)
220+
this.objective.removeParticipant(participant.identity);
218221
this.objective.setScore(encoded, 0);
219222
const data = {
220223
encoded_value: encoded,

scripts/jaylydb/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import { ScoreboardIdentity, ScoreboardIdentityType, ScoreboardObjective, system, world } from "@minecraft/server";
2828

29-
const version = "1.1.2";
29+
const version = "1.1.3";
3030
const str = () => ('00000000000000000' + (Math.random() * 0xffffffffffffffff).toString(16)).slice(-16);
3131
/**
3232
* A rough mechanism for create a random uuid. Not as secure as uuid without as much of a guarantee of uniqueness,

0 commit comments

Comments
 (0)