From 435e4d7c777469b8c6878a613bfad54190b28cec Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 22 Oct 2023 12:24:51 +0100 Subject: [PATCH] Fixed #242 --- src/main/java/eu/ha3/presencefootsteps/PresenceFootsteps.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/ha3/presencefootsteps/PresenceFootsteps.java b/src/main/java/eu/ha3/presencefootsteps/PresenceFootsteps.java index 47d3ac60..45dbd677 100644 --- a/src/main/java/eu/ha3/presencefootsteps/PresenceFootsteps.java +++ b/src/main/java/eu/ha3/presencefootsteps/PresenceFootsteps.java @@ -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)); }