We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e9704 commit 1fb4b70Copy full SHA for 1fb4b70
scripts/database/index.js
@@ -79,7 +79,7 @@ export class Database {
79
save() {
80
const stringified = JSON.stringify(this.cache);
81
const index = Math.ceil(stringified.length / 32000);
82
- world.setDynamicProperty(`${this.name}Index`);
+ world.setDynamicProperty(`${this.name}Index`, index);
83
for (let i = 0; i < index; i++) {
84
world.setDynamicProperty(`${this.name}:${i}`, stringified.slice(i * 32000, (i + 1) * 32000));
85
}
0 commit comments