mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Preload sounds on game startup, immediately fire updateScreen() on OreDict filter calculation, added restriction transporter recipe
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user