Skip to content

Commit 268aa2e

Browse files
committed
Should've fixed build error
1 parent 64602fe commit 268aa2e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ public void onHudRender(DrawContext drawContext, float tickDelta) {
104104
String state = client.GetState(tickDelta);
105105

106106
if (state == "Bank Angle" && lastPlayedSoundTime > repeatTime) {
107-
PlaySound(gpwsSounds.SOUNDS.BANK_ANGLE);
107+
gpwsElytraClient.SOUNDS_MANAGER.PlaySound(gpwsSounds.SOUNDS.BANK_ANGLE);
108108
lastPlayedSoundTime = 0;
109109
} else if (state == "Pull Up" && lastPlayedSoundTime > repeatTime + 20) {
110-
PlaySound(gpwsSounds.SOUNDS.PULL_UP);
110+
gpwsElytraClient.SOUNDS_MANAGER.PlaySound(gpwsSounds.SOUNDS.PULL_UP);
111111
lastPlayedSoundTime = 0;
112112
} else if (gpwsElytraClient.SOUNDS_MANAGER.YSounds.get(state) != null && lastPlayedSoundTime > 10) {
113-
PlaySound(gpwsElytraClient.SOUNDS_MANAGER.YSounds.get(state));
113+
gpwsElytraClient.SOUNDS_MANAGER.PlaySound(gpwsElytraClient.SOUNDS_MANAGER.YSounds.get(state));
114114
lastPlayedSoundTime = 0;
115115
}
116116
// LOGGER.info(String.valueOf(lastPlayedSoundTime));

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
import net.minecraft.registry.Registry;
77
import net.minecraft.sound.SoundEvent;
88
import net.minecraft.util.Identifier;
9+
import net.minecraft.client.MinecraftClient;
10+
import net.minecraft.client.sound.EntityTrackingSoundInstance;
11+
import net.minecraft.util.math.random.Random;
12+
import net.minecraft.sound.SoundCategory;
913

1014
public class gpwsSounds {
1115

0 commit comments

Comments
 (0)