Skip to content

Commit

Permalink
crash fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Innokenty committed Aug 11, 2023
1 parent a7c686d commit 16ec441
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/singularitynet/Client/VereyaModClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ public void setInputType(InputType input)

this.inputType = input;
// send chat message
MinecraftClient.getInstance().player.sendMessage(Text.of("input type set to: " + input.name()), true);
if (MinecraftClient.getInstance().player != null)
MinecraftClient.getInstance().player.sendMessage(Text.of("input type set to: " + input.name()), true);
if (input == InputType.HUMAN || input == InputType.HYBRID_MOUSE_KEYBOARD)
{
MinecraftClient.getInstance().mouse.lockCursor();
Expand Down

0 comments on commit 16ec441

Please sign in to comment.