Mekanism-tilera-Edition/common/mekanism/common/ThreadGetData.java
2013-08-26 18:57:08 -04:00

30 lines
625 B
Java

package mekanism.common;
import mekanism.common.util.MekanismUtils;
/**
* Thread used to retrieve data from the Mekanism server.
* @author AidanBrady
*
*/
public class ThreadGetData extends Thread
{
public ThreadGetData()
{
setDaemon(true);
start();
}
@Override
public void run()
{
Mekanism.latestVersionNumber = MekanismUtils.getLatestVersion();
Mekanism.recentNews = MekanismUtils.getRecentNews();
System.out.println("[Mekanism] Successfully retrieved data from server.");
try {
finalize();
} catch(Throwable t) {
System.out.println("[Mekanism] Unable to finalize server data.");
}
}
}