just not storing maps with 0 entries

This commit is contained in:
jenzur 2019-07-19 15:56:18 +02:00
parent cb930d5248
commit 50e4759bf5

View File

@ -41,12 +41,12 @@ public class DataMapperCalls {
//System.out.println("player dataMapper: " + player.getName() + "\nsteamid: " + player.getSteamID());
int i = 3;
while (i < fetchSize) {
String columnLabel = result.getMetaData().getColumnLabel(i);
if (!allMapBoards.keySet().contains(columnLabel)) {
allMapBoards.put(columnLabel, new MapBoard(columnLabel));
}
double specificDouble = result.getDouble(i);
if (specificDouble > 0.000) {
String columnLabel = result.getMetaData().getColumnLabel(i);
if (!allMapBoards.keySet().contains(columnLabel)) {
allMapBoards.put(columnLabel, new MapBoard(columnLabel));
}
timesCounter++;
MapValues mapValue = new MapValues();
mapValue.setPlayerSteamID(player.getSteamID());