Skip to content

Commit

Permalink
Disable while in bed. Fix #458
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Jun 14, 2024
1 parent 2a5ca9c commit a9ba9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/tr7zw/firstperson/LogicHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class LogicHandler {

void registerDefaultHandlers() {
FirstPersonAPI.registerPlayerHandler((ActivationHandler) () -> {
if (client.player.isAutoSpinAttack() || client.player.isFallFlying()
if (client.player.isSleeping() || client.player.isAutoSpinAttack() || client.player.isFallFlying()
|| (client.player.getSwimAmount(1f) != 0 && !isCrawlingOrSwimming(client.player))) {
timeout = System.currentTimeMillis() + 100;
return true;
Expand Down

0 comments on commit a9ba9e0

Please sign in to comment.