Skip to content

Commit 8cdd26e

Browse files
committed
Fix major bug which resulted in lockstep netcode polling input twice.
1 parent eab8ad9 commit 8cdd26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netplayjs-client/src/netcode/lockstep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class LockstepNetcode<
180180
// Queue the local input for a game tick.
181181
get(this.inputs, localPlayer).push({
182182
frame: this.frame,
183-
input: this.pollInput(),
183+
input: localInput,
184184
});
185185

186186
// Broadcast the input.

0 commit comments

Comments
 (0)