Skip to content

Commit

Permalink
Upload generated files for scripts (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayly-bot authored Jul 30, 2024
1 parent 81e9704 commit 1fb4b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/database/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class Database {
save() {
const stringified = JSON.stringify(this.cache);
const index = Math.ceil(stringified.length / 32000);
world.setDynamicProperty(`${this.name}Index`);
world.setDynamicProperty(`${this.name}Index`, index);
for (let i = 0; i < index; i++) {
world.setDynamicProperty(`${this.name}:${i}`, stringified.slice(i * 32000, (i + 1) * 32000));
}
Expand Down

0 comments on commit 1fb4b70

Please sign in to comment.