Skip to content

Commit

Permalink
Fixed slow script warning/error when loading a world
Browse files Browse the repository at this point in the history
  • Loading branch information
SIsilicon committed Oct 19, 2023
1 parent f5cd95e commit 66090f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/Minecraft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class ServerBuild extends ServerBuilder {
const playerDimensions = new Map<string, string>();
system.runInterval(() => {
tickCount++;
if (!this.runCommand("testfor @a").error && !worldLoaded) {
if (!worldLoaded && world.getAllPlayers().length) {
/**
* Emit to 'ready' event listener
*/
Expand Down

0 comments on commit 66090f0

Please sign in to comment.