Skip to content

Commit f702180

Browse files
committed
Rename Sound + stall detection
1 parent 2adf466 commit f702180

File tree

14 files changed

+10
-3
lines changed

14 files changed

+10
-3
lines changed

src/client/java/com/carsoncoder/gpws/gpwsElytraClient.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,17 @@ public void tick()
4646
}
4747

4848
private String StateLogic() {
49+
int StallAngle = -70;
50+
4951
Entity cam = MinecraftClient.getInstance().getCameraEntity();
50-
float Yaw = cam.getYaw();
51-
LOGGER.info(String.valueOf(Yaw));
52-
return "How tf you get a debug version of this game";
52+
float Pitch = cam.getPitch();
53+
LOGGER.info(String.valueOf(Pitch));
54+
55+
if (Pitch < StallAngle) {
56+
return "Stall";
57+
}
58+
59+
return "";
5360
}
5461

5562
public String GetState() {

0 commit comments

Comments
 (0)