Skip to content

Commit

Permalink
Fixed #242
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Oct 22, 2023
1 parent ebbd3f4 commit 435e4d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void onInitializeClient() {
}

private void onTick(MinecraftClient client) {
Optional.ofNullable(client.getCameraEntity()).filter(e -> !e.isRemoved()).ifPresent(cameraEntity -> {
Optional.ofNullable(client.player).filter(e -> !e.isRemoved()).ifPresent(cameraEntity -> {
if (keyBinding.isPressed() && client.currentScreen == null) {
client.setScreen(new PFOptionsScreen(client.currentScreen));
}
Expand Down

0 comments on commit 435e4d7

Please sign in to comment.