Fixed an issue where songs were being loaded into EntertainmentService.danceMap

This commit is contained in:
Mads Boddum
2016-04-03 02:23:01 +02:00
parent 14aed8ce8f
commit e411d6aa6e
@@ -34,9 +34,15 @@ public class EntertainmentService extends Service {
DatatableData performanceTable = (DatatableData) ClientFactory.getInfoFromFile("datatables/performance/performance.iff");
for (int i = 0; i < performanceTable.getRowCount(); i++) {
danceMap.put((String) performanceTable.getCell(i, 0), (int) performanceTable.getCell(i, 5)); // performanceName, danceVisualId
String requiredDance = (String) performanceTable.getCell(i, 4);
if(!requiredDance.isEmpty()) {
danceMap.put((String) performanceTable.getCell(i, 0), (int) performanceTable.getCell(i, 5)); // performanceName, danceVisualId
}
}
System.out.println(danceMap);
return super.initialize();
}