Fix sound volume

This commit is contained in:
PeytonPlayz595 2023-12-16 14:24:50 -05:00
parent 665a385aab
commit 851ac18414
3 changed files with 13 additions and 24 deletions

View File

@ -1,17 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin/main" path="src/main/java">
<classpathentry kind="src" output="bin/main" path="src/teavm/java">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test,teavm"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="lib" path="/home/peytonplayz585/Downloads/TeaVM/teavm-interop-0.6.1.jar"/>
<classpathentry kind="lib" path="/home/peytonplayz585/Downloads/TeaVM/teavm-jso-0.6.1.jar"/>
<classpathentry kind="lib" path="/home/peytonplayz585/Downloads/TeaVM/teavm-jso-apis-0.6.1.jar"/>
<classpathentry kind="lib" path="/home/peytonplayz585/Downloads/TeaVM/jzliib/jzlib-1.1.3.jar"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Minecraft-Classic-Browser</name>
<comment></comment>
<comment>Project Minecraft-Classic-Browser created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
@ -10,16 +10,6 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>

View File

@ -990,19 +990,19 @@ public class Level implements Serializable {
if(randNum == 3) {
randNum = rand.nextInt((4 - 1) + 1) + 1;
}
GL11.beginPlayback("sounds/blocks/grass" + randNum + ".mp3");
GL11.beginPlayback("sounds/blocks/grass" + randNum + ".mp3", 0.1F);
} else if(name == "wood") {
Random rand = new Random();
int randNum = rand.nextInt((4 - 1) + 1) + 1;
GL11.beginPlayback("sounds/blocks/wood" + randNum + ".mp3");
GL11.beginPlayback("sounds/blocks/wood" + randNum + ".mp3", 1.0F);
} else if(name == "gravel") {
Random rand = new Random();
int randNum = rand.nextInt((4 - 1) + 1) + 1;
GL11.beginPlayback("sounds/blocks/gravel" + randNum + ".mp3");
GL11.beginPlayback("sounds/blocks/gravel" + randNum + ".mp3", 0.6F);
} else if(name == "metal" || name == "stone") {
Random rand = new Random();
int randNum = rand.nextInt((4 - 1) + 1) + 1;
GL11.beginPlayback("sounds/blocks/stone" + randNum + ".mp3");
GL11.beginPlayback("sounds/blocks/stone" + randNum + ".mp3", 1.0F);
}
}