From a929896d2fbb55612f2d97d13d1cad52d7a1d728 Mon Sep 17 00:00:00 2001 From: oniatus Date: Sun, 28 Aug 2016 09:09:24 +0200 Subject: [PATCH] and fix formatting... --- .../main/java/org/terasology/module/TableModuleRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestalt-module/src/main/java/org/terasology/module/TableModuleRegistry.java b/gestalt-module/src/main/java/org/terasology/module/TableModuleRegistry.java index 05282a97..f7d04af0 100644 --- a/gestalt-module/src/main/java/org/terasology/module/TableModuleRegistry.java +++ b/gestalt-module/src/main/java/org/terasology/module/TableModuleRegistry.java @@ -168,7 +168,7 @@ public Module getLatestModuleVersion(Name id, Version minVersion, Version maxVer Module result = null; for (Map.Entry item : modules.row(id).entrySet()) { if (item.getKey().compareTo(minVersion) >= 0 && item.getKey().compareTo(maxVersion) < 0 - && (result == null || item.getKey().compareTo(result.getVersion()) > 0)) { + && (result == null || item.getKey().compareTo(result.getVersion()) > 0)) { result = item.getValue(); } }