Skip to content

Commit 1ca63b5

Browse files
committed
Add dispatcher threads start
1 parent b731462 commit 1ca63b5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/net/minestom/testing/EnvImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ final class EnvImpl implements Env {
2020
public EnvImpl(ServerProcess process) {
2121
this.process = process;
2222

23+
// Start the dispatcher threads if not already started.
24+
process().dispatcher().start();
25+
2326
// Use player provider to disable queued chunk sending.
2427
// Set here to allow an individual test to override if they want.
2528
process.connection().setPlayerProvider(TestPlayerImpl::new);
@@ -108,4 +111,4 @@ void check() {
108111
assertTrue(!initialized || called, "Last listener has not been called: " + eventType.getSimpleName());
109112
}
110113
}
111-
}
114+
}

0 commit comments

Comments
 (0)