Fixed sounds not working on servers

This commit is contained in:
Ellpeck 2016-05-11 15:28:46 +02:00
parent 54c618231f
commit 40d02814ea
2 changed files with 2 additions and 2 deletions

View file

@ -30,6 +30,7 @@ import de.ellpeck.actuallyadditions.mod.material.InitArmorMaterials;
import de.ellpeck.actuallyadditions.mod.material.InitToolMaterials; import de.ellpeck.actuallyadditions.mod.material.InitToolMaterials;
import de.ellpeck.actuallyadditions.mod.misc.DispenserHandlerFertilize; import de.ellpeck.actuallyadditions.mod.misc.DispenserHandlerFertilize;
import de.ellpeck.actuallyadditions.mod.misc.DungeonLoot; import de.ellpeck.actuallyadditions.mod.misc.DungeonLoot;
import de.ellpeck.actuallyadditions.mod.misc.SoundHandler;
import de.ellpeck.actuallyadditions.mod.misc.WorldData; import de.ellpeck.actuallyadditions.mod.misc.WorldData;
import de.ellpeck.actuallyadditions.mod.network.PacketHandler; import de.ellpeck.actuallyadditions.mod.network.PacketHandler;
import de.ellpeck.actuallyadditions.mod.ore.InitOreDict; import de.ellpeck.actuallyadditions.mod.ore.InitOreDict;
@ -78,6 +79,7 @@ public class ActuallyAdditions{
InitFluids.init(); InitFluids.init();
InitItems.init(); InitItems.init();
FuelHandler.init(); FuelHandler.init();
SoundHandler.init();
UpdateChecker.init(); UpdateChecker.init();
InitBooklet.preInit(); InitBooklet.preInit();
proxy.preInit(event); proxy.preInit(event);

View file

@ -109,8 +109,6 @@ public class ClientProxy implements IProxy{
this.registerCustomFluidBlockRenderer(InitFluids.fluidCanolaOil); this.registerCustomFluidBlockRenderer(InitFluids.fluidCanolaOil);
this.registerCustomFluidBlockRenderer(InitFluids.fluidOil); this.registerCustomFluidBlockRenderer(InitFluids.fluidOil);
SoundHandler.init();
IResourceManager manager = Minecraft.getMinecraft().getResourceManager(); IResourceManager manager = Minecraft.getMinecraft().getResourceManager();
if(manager instanceof IReloadableResourceManager){ if(manager instanceof IReloadableResourceManager){
((IReloadableResourceManager)manager).registerReloadListener(new IResourceManagerReloadListener(){ ((IReloadableResourceManager)manager).registerReloadListener(new IResourceManagerReloadListener(){