From e574ee9b84c4531e97b7cbb713d156ccde431a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sat, 7 Feb 2015 17:37:25 +0100 Subject: [PATCH] Less ambiguous? --- src/main/scala/li/cil/oc/client/Sound.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/client/Sound.scala b/src/main/scala/li/cil/oc/client/Sound.scala index 2d66d4e3c..fa533a465 100644 --- a/src/main/scala/li/cil/oc/client/Sound.scala +++ b/src/main/scala/li/cil/oc/client/Sound.scala @@ -14,6 +14,7 @@ import li.cil.oc.Settings import net.minecraft.client.Minecraft import net.minecraft.client.audio.SoundCategory import net.minecraft.client.audio.SoundManager +import net.minecraft.client.audio.SoundPoolEntry import net.minecraft.tileentity.TileEntity import net.minecraft.util.ResourceLocation import net.minecraftforge.client.event.sound.SoundLoadEvent @@ -194,7 +195,7 @@ object Sound { def play(name: String) { val resourceName = s"${Settings.resourceDomain}:$name" val sound = Minecraft.getMinecraft.getSoundHandler.getSound(new ResourceLocation(resourceName)) - val resource = sound.cloneEntry.getSoundPoolEntryLocation + val resource = (sound.cloneEntry(): SoundPoolEntry).getSoundPoolEntryLocation if (!initialized) { initialized = true soundSystem.newSource(false, source, toUrl(resource), resource.toString, true, tileEntity.getPos.getX, tileEntity.getPos.getY, tileEntity.getPos.getZ, SoundSystemConfig.ATTENUATION_LINEAR, 16)