Preload sounds on game startup, immediately fire updateScreen() on OreDict filter calculation, added restriction transporter recipe

This commit is contained in:
Aidan C. Brady committed 2013-10-31 14:26:04 -04:00
1 parent 2b37fe367a
commit a00a557f2b
5 files changed
+48 -7

No files matched your search

@@ -28,6 +28,8 @@ public class ClientTickHandler implements ITickHandler
{
public boolean hasNotified = false;
public boolean preloadedSounds = false;
public Minecraft mc = FMLClientHandler.instance().getClient();
public static final String MIKE_CAPE = "https://dl.dropboxusercontent.com/s/ji06yflixnszcby/cape.png";
@@ -41,6 +43,18 @@ public class ClientTickHandler implements ITickHandler
@Override
public void tickStart(EnumSet<TickType> type, Object... tickData)
{
if(!preloadedSounds && mc.sndManager.sndSystem != null)
{
new Thread(new Runnable() {
@Override
public void run()
{
preloadedSounds = true;
MekanismClient.audioHandler.preloadSounds();
}
}).start();
}
if(!hasNotified && mc.theWorld != null && Mekanism.latestVersionNumber != null && Mekanism.recentNews != null)
{
MekanismUtils.checkForUpdates(mc.thePlayer);