Merge branch '1.11' into 1.12

* 1.11:
  remove some now redundant variable assignments
  add `FMLAT` line to core jar manifest
  Use ATed methods & fields instead of ReflectionUtils. Removed ObfuscatedNames as no longer needed.
  add access transformer

Conflicts:
	src/main/java/mekanism/client/render/MekanismRenderer.java
	src/main/java/mekanism/common/ObfuscatedNames.java
	src/main/java/mekanism/common/network/PacketPortableTeleporter.java
This commit is contained in:
aidancbrady committed 2017-08-16 14:02:27 -04:00
commit 2c4ba7543d
12 files changed
+167 -179

No files matched your search

@@ -3,9 +3,7 @@ package mekanism.client.sound;
import java.util.HashMap;
import java.util.Map;
import mekanism.common.ObfuscatedNames;
import mekanism.common.config.MekanismConfig.client;
import mekanism.common.util.ReflectionUtils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.audio.ISound;
import net.minecraft.client.audio.ITickableSound;
@@ -112,26 +110,13 @@ public class SoundHandler
public static SoundManager getSoundManager()
{
try {
return (SoundManager)ReflectionUtils.getPrivateValue(mc.getSoundHandler(), net.minecraft.client.audio.SoundHandler.class, ObfuscatedNames.SoundHandler_sndManager);
} catch(Exception e) {
return null;
}
return mc.getSoundHandler().sndManager;
}
//Fudge required because sound thread gets behind and the biMap crashes when rapidly toggling sounds.
public static Map<ISound, String> getSoundMap()
{
if(invPlayingSounds == null)
{
try {
invPlayingSounds = (Map<ISound, String>)ReflectionUtils.getPrivateValue(getSoundManager(), net.minecraft.client.audio.SoundManager.class, ObfuscatedNames.SoundManager_invPlayingSounds);
} catch(Exception e) {
invPlayingSounds = null;
}
}
return invPlayingSounds;
return mc.getSoundHandler().sndManager.invPlayingSounds;
}
public static boolean canRestartSound(ITickableSound sound)