Skip to content

Commit 1fb4b70

Browse files
authored
Upload generated files for scripts (#359)
1 parent 81e9704 commit 1fb4b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/database/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class Database {
7979
save() {
8080
const stringified = JSON.stringify(this.cache);
8181
const index = Math.ceil(stringified.length / 32000);
82-
world.setDynamicProperty(`${this.name}Index`);
82+
world.setDynamicProperty(`${this.name}Index`, index);
8383
for (let i = 0; i < index; i++) {
8484
world.setDynamicProperty(`${this.name}:${i}`, stringified.slice(i * 32000, (i + 1) * 32000));
8585
}

0 commit comments

Comments
 (0)