File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/main/java/symbolics/division/meret/client Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ authors=hama, Tomate0613
17
17
contributors =Sisby folk
18
18
license =CC0-1.0
19
19
# Mod Version
20
- baseVersion =0.1.4
20
+ baseVersion =0.1.5
21
21
# Branch Metadata
22
22
branch =1.21
23
23
tagBranch =1.21
Original file line number Diff line number Diff line change 1
1
package symbolics .division .meret .client ;
2
2
3
+ import com .mojang .authlib .minecraft .client .MinecraftClient ;
3
4
import dev .doublekekse .area_lib .Area ;
4
5
import dev .doublekekse .area_lib .data .AreaClientData ;
5
6
import dev .doublekekse .area_lib .data .AreaSavedData ;
6
7
import net .fabricmc .api .ClientModInitializer ;
8
+ import net .minecraft .client .Minecraft ;
7
9
import net .minecraft .client .player .LocalPlayer ;
8
10
import net .minecraft .core .Holder ;
9
11
import net .minecraft .sounds .Music ;
10
12
import net .minecraft .sounds .SoundEvents ;
13
+ import net .minecraft .sounds .SoundSource ;
11
14
import org .slf4j .Logger ;
12
15
import org .slf4j .LoggerFactory ;
13
16
import symbolics .division .meret .Meret ;
@@ -25,6 +28,9 @@ public void onInitializeClient() {
25
28
}
26
29
27
30
public static Optional <Music > getOverride (LocalPlayer player ) {
31
+ if (Minecraft .getInstance ().options .getSoundSourceVolume (SoundSource .MUSIC ) == 0 ) {
32
+ return Optional .empty ();
33
+ }
28
34
if (player == null ) return Optional .empty ();
29
35
AreaSavedData areaSavedData = AreaClientData .getClientLevelData ();
30
36
if (areaSavedData == null ) return Optional .empty ();
You can’t perform that action at this time.
0 commit comments