Added config for machines crafting sound (#1969)

This commit is contained in:
vhd 2020-01-10 23:03:58 +02:00 committed by modmuss50
parent bc47a03451
commit 9e1b1a76e1
3 changed files with 9 additions and 2 deletions

View file

@ -70,7 +70,10 @@ public class TechReborn implements ModInitializer {
ServerboundPackets.init();
ModRegistry.setupShit();
RecipeCrafter.soundHanlder = new ModSounds.SoundHandler();
if (TechRebornConfig.machineSoundVolume > 0) {
if (TechRebornConfig.machineSoundVolume > 1) TechRebornConfig.machineSoundVolume = 1F;
RecipeCrafter.soundHanlder = new ModSounds.SoundHandler();
}
ModLoot.init();
WorldGenerator.initBiomeFeatures();
GuiHandler.register();