We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85570ae commit 46122bcCopy full SHA for 46122bc
1 file changed
engine/value/value.ts
@@ -5,7 +5,7 @@ import type {
5
JsonObject,
6
ValueRegistry,
7
} from "@dreamlab/engine";
8
-import { ObjectAdapter, ValueTypeAdapter } from "@dreamlab/engine";
+import { GameStatus, ObjectAdapter, ValueTypeAdapter } from "@dreamlab/engine";
9
import * as internal from "@dreamlab/engine/internal";
10
import type { ReadonlyDeep } from "@dreamlab/vendor/type-fest.ts";
11
import { JsonValue } from "./data.ts";
@@ -197,6 +197,7 @@ export class Value<T = unknown> {
197
incomingClock: number,
198
incomingSource: ConnectionId,
199
): void {
200
+ if (this.#registry.game.status !== GameStatus.Running) return;
201
if (this.#destroyed) return;
202
203
if (incomingClock < this.clock) return;
0 commit comments