diff --git a/build.gradle b/build.gradle index 96d181bb8a..e052b50b7a 100644 --- a/build.gradle +++ b/build.gradle @@ -129,7 +129,7 @@ project(":desktop"){ compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop" compile arcModule("backends:backend-lwjgl3") - compile 'com.github.MinnDevelopment:java-discord-rpc:v2.0.0' + compile 'com.github.MinnDevelopment:java-discord-rpc:v2.0.2' } } diff --git a/desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java b/desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java index 95f98560ed..8c4559ea60 100644 --- a/desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java +++ b/desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java @@ -83,8 +83,7 @@ public class DesktopPlatform extends Platform{ try{ Enumeration e = NetworkInterface.getNetworkInterfaces(); NetworkInterface out; - for(out = e.nextElement(); (out.getHardwareAddress() == null || !validAddress(out.getHardwareAddress())) && e.hasMoreElements(); out = e.nextElement()) - ; + for(out = e.nextElement(); (out.getHardwareAddress() == null || !validAddress(out.getHardwareAddress())) && e.hasMoreElements(); out = e.nextElement()); byte[] bytes = out.getHardwareAddress(); byte[] result = new byte[8];