Fixed core launch sound playing regardless of volume settings

This commit is contained in:
Anuken
2025-12-20 14:07:34 -05:00
parent 266c5a541b
commit d889acba16

View File

@@ -313,7 +313,7 @@ public class CoreBlock extends StorageBlock{
}
if(!headless){
(launching ? launchSound : landSound).play(launchSoundVolume);
(launching ? launchSound : landSound).at(Core.camera.position, 1f, (launching ? launchSoundVolume : landSoundVolume));
// Add fade-in and fade-out foreground when landing or launching.
if(renderer.isLaunching()){
float margin = 30f;