Integer mapkey = getMapKey(world, map, var);
if (mapkey == null) return;
try {
c = getConnection();
Statement stmt = c.createStatement();
<BUG>ResultSet rs = stmt.executeQuery("SELECT x,y,zoom FROM Tiles WHERE MapID=" + mapkey + ";");
</BUG>
while (rs.next()) {
StorageTile st = new StorageTile(world, map, rs.getInt("x"), rs.getInt("y"), rs.getInt("zoom"), var);
<BUG>cb.tileFound(st);
st.cleanup();</BUG>
}

Integer mapkey = getMapKey(world, map, var);
if (mapkey == null) return;
try {
c = getConnection();
Statement stmt = c.createStatement();
ResultSet rs = stmt.executeQuery("SELECT x,y,zoom,Format FROM Tiles WHERE MapID=" + mapkey + ";");
while (rs.next()) {
StorageTile st = new StorageTile(world, map, rs.getInt("x"), rs.getInt("y"), rs.getInt("zoom"), var);
cb.tileFound(st, MapType.ImageEncoding.fromOrd(rs.getInt("Format")));
st.cleanup();
}
