Skip to content

Commit e71b229

Browse files
committed
Added client check to debug keboard in prediction manager
1 parent 00a62f8 commit e71b229

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Runtime/Code/Player/Character/MovementSystem/ClientPrediction/AirshipPredictionManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ public void StartPrediction(){
7575
Physics.simulationMode = SimulationMode.Script;
7676
debugging = false;
7777
this.physicsTimer = 0;
78-
Keyboard.current.onTextInput += OnKeyboardInput;
78+
79+
if(RunCore.IsClient() && Keyboard.current != null){
80+
Keyboard.current.onTextInput += OnKeyboardInput;
81+
}
7982
}
8083

8184
private void OnKeyboardInput(Char e){

0 commit comments

Comments
 (0)