.
This commit is contained in:
@@ -84,9 +84,6 @@ public class DesktopPlatform extends Platform{
|
|||||||
if(!SteamAPI.init()){
|
if(!SteamAPI.init()){
|
||||||
Log.info("Steam client not running. Make sure Steam is running!");
|
Log.info("Steam client not running. Make sure Steam is running!");
|
||||||
}else{
|
}else{
|
||||||
//times per second
|
|
||||||
float interval = 20f;
|
|
||||||
Interval i = new Interval();
|
|
||||||
|
|
||||||
//run steam callbacks
|
//run steam callbacks
|
||||||
Events.on(GameLoadEvent.class, event -> {
|
Events.on(GameLoadEvent.class, event -> {
|
||||||
@@ -94,10 +91,8 @@ public class DesktopPlatform extends Platform{
|
|||||||
Core.app.addListener(new ApplicationListener(){
|
Core.app.addListener(new ApplicationListener(){
|
||||||
@Override
|
@Override
|
||||||
public void update(){
|
public void update(){
|
||||||
if(i.get(interval)){
|
if(SteamAPI.isSteamRunning()){
|
||||||
if(SteamAPI.isSteamRunning()){
|
SteamAPI.runCallbacks();
|
||||||
SteamAPI.runCallbacks();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user