fix: possibly fixed the scanner sound no longer working after changing dimensions
@@ -158,6 +158,12 @@ public class ScannerOverlayGui extends GuiRoot {
}
+ @SubscribeEvent
+ public void onPlayerChangedDimension(PlayerEvent.PlayerChangedDimensionEvent event) {
+ mc.getSoundHandler().stop(sound);
+ sound = new ScannerSound(mc);
+ }
+
@SubscribeEvent
public void onPlayerLoggedOut(PlayerEvent.PlayerLoggedOutEvent event) {
mc.getSoundHandler().stop(sound);
