mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 16:39:49 +00:00
Better Default Magic Cycle
This commit is contained in:
1 parent
0cfd11298d
commit
d6dc743611
4 files changed
+201
-81
No files matched your search
@@ -109,7 +109,10 @@ public class GuiMagicCycleMap extends GuiDiagram {
|
||||
int targetId = entry.getKey();
|
||||
if (!orderMap.containsKey(targetId)) continue;
|
||||
float percent = entry.getValue();
|
||||
String hover = "+" + (int) (percent * 100) + "%";
|
||||
String modifier = "";
|
||||
if(percent > 0.0)
|
||||
modifier += "+";
|
||||
String hover = modifier + (int) (percent * 100) + "%";
|
||||
conns.add(new DiagramConnection(m.id, targetId, percent, hover));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user