From f5f0f02abe7cc71766d428b0767b23f989d54f81 Mon Sep 17 00:00:00 2001 From: iczero Date: Sun, 26 Aug 2018 06:12:16 -0700 Subject: [PATCH] Fix UUID generation on desktop (#203) --- desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java b/desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java index 50472b8e33..170b788ce2 100644 --- a/desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java +++ b/desktop/src/io/anuke/mindustry/desktop/DesktopPlatform.java @@ -135,7 +135,7 @@ public class DesktopPlatform extends Platform{ try{ Enumeration e = NetworkInterface.getNetworkInterfaces(); NetworkInterface out; - for(out = e.nextElement(); out.getHardwareAddress() == null && e.hasMoreElements() && validAddress(out.getHardwareAddress()); 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];